fix scroller del bug.

SVN revision: 38788
This commit is contained in:
Carsten Haitzler 2009-01-26 02:18:41 +00:00
parent 09ab0fb0df
commit 9839429917
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ elm_smart_scroller_child_set(Evas_Object *obj, Evas_Object *child)
if (sd->child_obj)
{
_elm_smart_pan_child_set(sd->pan_obj, NULL);
evas_object_event_callback_del(sd->child_obj, EVAS_CALLBACK_FREE, _smart_child_del_hook);
evas_object_event_callback_del(sd->child_obj, EVAS_CALLBACK_DEL, _smart_child_del_hook);
}
sd->child_obj = child;
@ -129,7 +129,7 @@ elm_smart_scroller_child_set(Evas_Object *obj, Evas_Object *child)
sd->pan_func.max_get = _elm_smart_pan_max_get;
sd->pan_func.child_size_get = _elm_smart_pan_child_size_get;
evas_object_event_callback_add(child, EVAS_CALLBACK_FREE, _smart_child_del_hook, sd);
evas_object_event_callback_add(child, EVAS_CALLBACK_DEL, _smart_child_del_hook, sd);
_elm_smart_pan_child_set(sd->pan_obj, sd->child_obj);
sd->pan_func.child_size_get(sd->pan_obj, &w, &h);
sd->child.w = w;