call item unrealized callback more reliably
SVN revision: 64235
This commit is contained in:
parent
23032f2ab5
commit
3f4a9b7092
|
@ -1085,11 +1085,13 @@ _item_realize(Elm_Gengrid_Item *it)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_item_unrealize(Elm_Gengrid_Item *it)
|
_item_unrealize(Elm_Gengrid_Item *it, Eina_Bool calc)
|
||||||
{
|
{
|
||||||
Evas_Object *icon;
|
Evas_Object *icon;
|
||||||
|
|
||||||
if (!it->realized) return;
|
if (!it->realized) return;
|
||||||
|
if (!calc)
|
||||||
|
evas_object_smart_callback_call(WIDGET(it), SIG_UNREALIZED, it);
|
||||||
if (it->long_timer)
|
if (it->long_timer)
|
||||||
{
|
{
|
||||||
ecore_timer_del(it->long_timer);
|
ecore_timer_del(it->long_timer);
|
||||||
|
@ -1203,11 +1205,7 @@ _group_item_place(Pan *sd)
|
||||||
evas_object_raise(VIEW(it));
|
evas_object_raise(VIEW(it));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
_item_unrealize(it);
|
||||||
_item_unrealize(it);
|
|
||||||
if (was_realized)
|
|
||||||
evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1470,11 +1468,7 @@ _item_place(Elm_Gengrid_Item *it,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!it->is_group)
|
if (!it->is_group)
|
||||||
{
|
_item_unrealize(it);
|
||||||
_item_unrealize(it);
|
|
||||||
if (was_realized)
|
|
||||||
evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
it->group_realized = EINA_FALSE;
|
it->group_realized = EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue