Elm entry: Set initial select mode for non desktop entries.
authorTom Hacohen <tom@stosb.com>
Fri, 7 Feb 2014 14:13:46 +0000 (14:13 +0000)
committerTom Hacohen <tom@stosb.com>
Fri, 7 Feb 2014 14:22:37 +0000 (14:22 +0000)
Initial select mode was not properly set, as was just left to default.

This, in combination with the following from the efl repo:
commit 211845c8851dc48b54824082a63ead6aa98363b9
commit c061e7692793740cc363478586e4e062a6b2d7a4
fixes T861.

src/lib/elm_entry.c

index 078ad9b..57bc317 100644 (file)
@@ -573,9 +573,8 @@ _elm_entry_smart_theme(Eo *obj, void *_pd, va_list *list)
    elm_widget_theme_object_set
      (obj, sd->entry_edje, "entry", _elm_entry_theme_group_get(obj), style);
 
-   if (_elm_config->desktop_entry)
-     edje_object_part_text_select_allow_set
-       (sd->entry_edje, "elm.text", EINA_TRUE);
+   edje_object_part_text_select_allow_set
+       (sd->entry_edje, "elm.text", _elm_config->desktop_entry);
 
    elm_object_text_set(obj, t);
    eina_stringshare_del(t);