edje_object_mirrored_set(VIEW(it), elm_widget_mirrored_get(WIDGET(it)));
evas_object_smart_member_add(VIEW(it), it->wd->pan_smart);
elm_widget_sub_object_add(it->wd->self, VIEW(it));
- snprintf(style, sizeof(style), "it/%s",
+ snprintf(style, sizeof(style), "item/%s",
it->itc->item_style ? it->itc->item_style : "default");
_elm_theme_object_set(it->wd->self, VIEW(it), "gengrid", style,
elm_widget_style_get(it->wd->self));
Evas_Object *icon;
if (!it->realized) return;
+ evas_object_smart_callback_call(WIDGET(it), SIG_UNREALIZED, it);
if (it->long_timer)
{
ecore_timer_del(it->long_timer);
evas_object_raise(VIEW(it));
}
else
- {
- _item_unrealize(it);
- if (was_realized)
- evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
- }
+ _item_unrealize(it);
}
}
else
{
if (!it->is_group)
- {
- _item_unrealize(it);
- if (was_realized)
- evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
- }
+ _item_unrealize(it);
else
it->group_realized = EINA_FALSE;
}
}
static Elm_Gengrid_Item *
-_item_create(Widget_Data *wd,
+_item_new(Widget_Data *wd,
const Elm_Gengrid_Item_Class *itc,
const void *data,
Evas_Smart_Cb func,
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, itc, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_append(wd->items, EINA_INLIST_GET(it));
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, itc, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_prepend(wd->items, EINA_INLIST_GET(it));
if (it->is_group)
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, itc, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_prepend_relative
(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(relative));
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, itc, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_append_relative
(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(relative));
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, itc, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
if (!wd->state)