don't report callbacks on NULL object.

From _del_pre_hook() we first delete pan_smart and then call
elm_genlist_clear() to rip off children, however genlist_clear was
always doing evas_object_smart_callback_call() on it.



SVN revision: 52111
This commit is contained in:
Gustavo Sverzut Barbieri 2010-09-10 00:28:47 +00:00
parent 9c4eb78705
commit 9a2d660eb1
1 changed files with 5 additions and 2 deletions

View File

@ -2023,8 +2023,11 @@ elm_genlist_clear(Evas_Object *obj)
wd->pan_y = 0;
wd->minw = 0;
wd->minh = 0;
evas_object_size_hint_min_set(wd->pan_smart, wd->minw, wd->minh);
evas_object_smart_callback_call(wd->pan_smart, "changed", NULL);
if (wd->pan_smart)
{
evas_object_size_hint_min_set(wd->pan_smart, wd->minw, wd->minh);
evas_object_smart_callback_call(wd->pan_smart, "changed", NULL);
}
_sizing_eval(obj);
}