summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 05:35:36 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 05:35:36 +0000
commit3f4a9b70928058263336b405640b580fd4735a7e (patch)
tree9c4190ce370d386880d94a8683401d039ddafdc3 /legacy
parent23032f2ab5720e4d11be357f6fde4759a7c56c4c (diff)
call item unrealized callback more reliably
SVN revision: 64235
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/elm_gengrid.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/legacy/elementary/src/lib/elm_gengrid.c b/legacy/elementary/src/lib/elm_gengrid.c
index 2580e07515..29064b7733 100644
--- a/legacy/elementary/src/lib/elm_gengrid.c
+++ b/legacy/elementary/src/lib/elm_gengrid.c
@@ -1085,11 +1085,13 @@ _item_realize(Elm_Gengrid_Item *it)
1085} 1085}
1086 1086
1087static void 1087static void
1088_item_unrealize(Elm_Gengrid_Item *it) 1088_item_unrealize(Elm_Gengrid_Item *it, Eina_Bool calc)
1089{ 1089{
1090 Evas_Object *icon; 1090 Evas_Object *icon;
1091 1091
1092 if (!it->realized) return; 1092 if (!it->realized) return;
1093 if (!calc)
1094 evas_object_smart_callback_call(WIDGET(it), SIG_UNREALIZED, it);
1093 if (it->long_timer) 1095 if (it->long_timer)
1094 { 1096 {
1095 ecore_timer_del(it->long_timer); 1097 ecore_timer_del(it->long_timer);
@@ -1203,11 +1205,7 @@ _group_item_place(Pan *sd)
1203 evas_object_raise(VIEW(it)); 1205 evas_object_raise(VIEW(it));
1204 } 1206 }
1205 else 1207 else
1206 { 1208 _item_unrealize(it);
1207 _item_unrealize(it);
1208 if (was_realized)
1209 evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
1210 }
1211 } 1209 }
1212} 1210}
1213 1211
@@ -1470,11 +1468,7 @@ _item_place(Elm_Gengrid_Item *it,
1470 else 1468 else
1471 { 1469 {
1472 if (!it->is_group) 1470 if (!it->is_group)
1473 { 1471 _item_unrealize(it);
1474 _item_unrealize(it);
1475 if (was_realized)
1476 evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
1477 }
1478 else 1472 else
1479 it->group_realized = EINA_FALSE; 1473 it->group_realized = EINA_FALSE;
1480 } 1474 }