summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-11-24 11:08:17 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-11-25 08:12:25 +0200
commitb88718e6545313913c637cfb2c22cd821be452d9 (patch)
treea7f6024ba91f24126981f4cfdcbb8efa73eda0fd /src/lib/edje
parentee0eb1336b0879351b9ff838adbd640f02d05527 (diff)
Edje: remove duplicated code.
In _edje_object_evas_object_smart_add, code is duplicated from _evas_object_smart_clipped_smart_add. We can invoke eo_do_super instead.
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_smart.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index 6a76abc72d..332b9586c9 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -78,14 +78,8 @@ _edje_object_evas_object_smart_add(Eo *obj, Edje *ed)
78 78
79 evas_event_freeze(tev); 79 evas_event_freeze(tev);
80 80
81 ed->base->evas = tev; 81 eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
82 ed->base->clipper = evas_object_rectangle_add(ed->base->evas); 82
83 evas_object_static_clip_set(ed->base->clipper, 1);
84 evas_object_smart_member_add(ed->base->clipper, obj);
85 evas_object_color_set(ed->base->clipper, 255, 255, 255, 255);
86 evas_object_move(ed->base->clipper, -100000, -100000);
87 evas_object_resize(ed->base->clipper, 200000, 200000);
88 evas_object_pass_events_set(ed->base->clipper, 1);
89 ed->is_rtl = EINA_FALSE; 83 ed->is_rtl = EINA_FALSE;
90 ed->have_objects = EINA_TRUE; 84 ed->have_objects = EINA_TRUE;
91 ed->references = 1; 85 ed->references = 1;