forked from enlightenment/efl
elementary/button : Some codes were duplicated in _sub_del and
_content_unset_hook. SVN revision: 69861
This commit is contained in:
parent
8ae0e902de
commit
cf9b82c6d9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue