elementary/button : Some codes were duplicated in _sub_del and

_content_unset_hook.


SVN revision: 69861
This commit is contained in:
WooHyun Jung 2012-04-02 12:33:29 +00:00
parent 8ae0e902de
commit cf9b82c6d9
1 changed files with 1 additions and 4 deletions

View 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;
}