elementary/button : Some codes were duplicated in _sub_del and
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 Apr 2012 12:33:29 +0000 (12:33 +0000)
committerRajeev Ranjan <rajeev.r@samsung.com>
Tue, 3 Apr 2012 09:04:08 +0000 (14:34 +0530)
_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

index cdd5330..7130807 100644 (file)
@@ -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;
 }