From 15ccbb56d8c1df6b77ec7843013443341a67cbdc Mon Sep 17 00:00:00 2001 From: woohyun Date: Mon, 2 Apr 2012 12:33:29 +0000 Subject: [PATCH] elementary/button : Some codes were duplicated in _sub_del and _content_unset_hook. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69861 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_button.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index cdd5330..7130807 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -222,10 +222,7 @@ _content_unset_hook(Evas_Object *obj, const char *part) if (!wd->icon) return NULL; Evas_Object *icon = wd->icon; elm_widget_sub_object_del(obj, wd->icon); - evas_object_event_callback_del_full(wd->icon, EVAS_CALLBACK_CHANGED_SIZE_HINTS, - _changed_size_hints, obj); - edje_object_part_unswallow(wd->btn, wd->icon); - wd->icon = NULL; + edje_object_part_unswallow(wd->btn, icon); return icon; } -- 2.7.4