Dear All

In elc_multibuttonentry, there're some elm_widget_show_region_set callings.
However it's not checking whether it got focused or not,
sometimes it's bugging users when the user's trying to move scroller.
So I changed to check focused.

Thanks
Index: elementary/src/lib/elc_multibuttonentry.c
===================================================================
--- elementary/src/lib/elc_multibuttonentry.c   (리비전 67014)
+++ elementary/src/lib/elc_multibuttonentry.c   (작업 사본)
@@ -175,6 +175,7 @@
    if (elm_widget_focus_get(obj))
      {
         wd->focused = EINA_TRUE;
+        if (wd->entry) elm_entry_cursor_end_set(wd->entry);
         evas_object_smart_callback_call(obj, "focused", NULL);
      }
    else
@@ -1071,7 +1072,9 @@
    evas_object_geometry_get(wd->entry, &en_x, &en_y, &en_w, &en_h);
    evas_object_geometry_get(wd->box, &bx_x, &bx_y, NULL, NULL);
 
-   elm_widget_show_region_set(wd->box, en_x - bx_x, en_y - bx_y, en_w, en_h, 
EINA_TRUE);
+   if (wd->focused)
+     elm_widget_show_region_set(wd->box, en_x - bx_x, en_y - bx_y, en_w,
+                                en_h, EINA_TRUE);
 }
 
 static void
@@ -1105,7 +1108,6 @@
         if (!wd->entry) return;
         elm_entry_single_line_set(wd->entry, EINA_TRUE);
         elm_object_text_set(wd->entry, "");
-        elm_entry_cursor_end_set(wd->entry);
         evas_object_size_hint_min_set(wd->entry, MIN_W_ENTRY, 0);
         evas_object_size_hint_weight_set(wd->entry, EVAS_HINT_EXPAND, 
EVAS_HINT_EXPAND);
         evas_object_size_hint_align_set(wd->entry, EVAS_HINT_FILL, 
EVAS_HINT_FILL);
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to