aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-01-07 20:17:14 +0000
committerTom Hacohen <tom@stosb.com>2013-01-07 20:17:14 +0000
commite1d1e56cbd2a414c4f1abf1ebb9b27c3a445eb0b (patch)
treef985be76e272a994388c16e5ae8b2db699c258c7
parentfb86a363bdb624e21feaedea7b56039e09e7b175 (diff)
downloadenlightenment-e1d1e56cbd2a414c4f1abf1ebb9b27c3a445eb0b.tar.gz
enlightenment-e1d1e56cbd2a414c4f1abf1ebb9b27c3a445eb0b.tar.xz
enlightenment-e1d1e56cbd2a414c4f1abf1ebb9b27c3a445eb0b.zip
E entry + scrollframe: Add rects as smart members.
This is a backport of 82360. I wrote clippers instead of rects there by mistake. This should fix some bugs (specifically with the .desktop file editing menu), and is just generally correct. SVN revision: 82361
-rw-r--r--src/bin/e_scrollframe.c1
-rw-r--r--src/bin/e_widget_entry.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/e_scrollframe.c b/src/bin/e_scrollframe.c
index a1d60462f..786589486 100644
--- a/src/bin/e_scrollframe.c
+++ b/src/bin/e_scrollframe.c
@@ -1035,6 +1035,7 @@ _e_smart_add(Evas_Object *obj)
evas_object_smart_member_add(o, obj);
o = evas_object_rectangle_add(evas_object_evas_get(obj));
+ evas_object_smart_member_add(o, obj);
sd->event_obj = o;
evas_object_color_set(o, 0, 0, 0, 0);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_WHEEL,
diff --git a/src/bin/e_widget_entry.c b/src/bin/e_widget_entry.c
index a0aa1995d..2d35855be 100644
--- a/src/bin/e_widget_entry.c
+++ b/src/bin/e_widget_entry.c
@@ -67,6 +67,7 @@ e_widget_entry_add(Evas *evas, char **text_location, void (*func) (void *data, v
evas_object_repeat_events_set(o, EINA_TRUE);
evas_object_color_set(o, 0, 0, 0, 0);
e_widget_sub_object_add(obj, o);
+ evas_object_smart_member_add(o, obj);
evas_object_show(o);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, _e_wid_focus_steal, obj);