Always allow selections for entries when select_mode is default
authorsachiel <sachiel>
Thu, 29 Apr 2010 19:56:59 +0000 (19:56 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Apr 2010 19:56:59 +0000 (19:56 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48434 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_entry.c

index d5e95d9..2bcc1d0 100644 (file)
@@ -1858,6 +1858,9 @@ _edje_entry_real_part_init(Edje_Real_Part *rp)
    evas_object_event_callback_add(rp->object, EVAS_CALLBACK_MOUSE_UP, _edje_part_mouse_up_cb, rp);
    evas_object_event_callback_add(rp->object, EVAS_CALLBACK_MOUSE_MOVE, _edje_part_mouse_move_cb, rp);
    
+   if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_DEFAULT)
+     en->select_allow = 1;
+
    if (rp->part->entry_mode == EDJE_ENTRY_EDIT_MODE_PASSWORD)
      {
         en->select_allow = 0;
@@ -2275,6 +2278,8 @@ void
 _edje_entry_select_allow_set(Edje_Real_Part *rp, Eina_Bool allow)
 {
    Entry *en = rp->entry_data;
+   if (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_DEFAULT)
+     return;
    en->select_allow = allow;
 }