if (wd->queue_idle_enterer) ecore_idle_enterer_del(wd->queue_idle_enterer);
if (wd->must_recalc_idler) ecore_idler_del(wd->must_recalc_idler);
if (wd->multi_timer) ecore_timer_del(wd->multi_timer);
- if (wd->mode_type) eina_stringshare_del(wd->mode_type);
+ if (wd->decorate_type) eina_stringshare_del(wd->decorate_type);
if (wd->scr_hold_timer) ecore_timer_del(wd->scr_hold_timer);
free(wd);
}
_mode_item_unrealize(it);
if (it->item->group_item)
evas_object_raise(it->item->VIEW(group_item));
- snprintf(buf, sizeof(buf), "elm,state,%s,passive,finished", it->wd->mode_type);
+ snprintf(buf, sizeof(buf), "elm,state,%s,passive,finished", it->wd->decorate_type);
edje_object_signal_callback_del_full(obj, buf, "elm", _mode_finished_signal_cb, it);
evas_event_thaw(te);
evas_event_thaw_eval(te);
if (it->item->order_num_in & 0x1) strncat(buf, "_odd", sizeof(buf) - strlen(buf));
strncat(buf, "/", sizeof(buf) - strlen(buf));
- strncat(buf, it->itc->mode_item_style, sizeof(buf) - strlen(buf));
+ strncat(buf, it->itc->decorate_item_style, sizeof(buf) - strlen(buf));
_elm_theme_object_set(WIDGET(it), it->item->mode_view, "genlist", buf,
elm_widget_style_get(WIDGET(it)));
evas_event_thaw(evas_object_evas_get(it->wd->obj));
evas_event_thaw_eval(evas_object_evas_get(it->wd->obj));
- snprintf(buf, sizeof(buf), "elm,state,%s,active", wd->mode_type);
+ snprintf(buf, sizeof(buf), "elm,state,%s,active", wd->decorate_type);
edje_object_signal_emit(it->item->mode_view, buf, "elm");
}
it = wd->mode_item;
it->item->nocache_once = EINA_TRUE;
- snprintf(buf, sizeof(buf), "elm,state,%s,passive", wd->mode_type);
- snprintf(buf2, sizeof(buf2), "elm,state,%s,passive,finished", wd->mode_type);
+ snprintf(buf, sizeof(buf), "elm,state,%s,passive", wd->decorate_type);
+ snprintf(buf2, sizeof(buf2), "elm,state,%s,passive,finished", wd->decorate_type);
edje_object_signal_emit(it->item->mode_view, buf, "elm");
edje_object_signal_callback_add(it->item->mode_view, buf2, "elm", _mode_finished_signal_cb, it);
EAPI void
elm_genlist_item_decorate_mode_set(Elm_Object_Item *it,
- const char *mode_type,
+ const char *decorate_type,
Eina_Bool mode_set)
{
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
Elm_Object_Item *it2;
if (!wd) return;
- if (!mode_type) return;
+ if (!decorate_type) return;
if ((_it->generation < _it->wd->generation) ||
elm_widget_item_disabled_get(_it)) return;
if (wd->decorate_mode) return;
if ((wd->mode_item == _it) &&
- (!strcmp(mode_type, wd->mode_type)) &&
+ (!strcmp(decorate_type, wd->decorate_type)) &&
(mode_set))
return;
- if (!_it->itc->mode_item_style) return;
+ if (!_it->itc->decorate_item_style) return;
_it->mode_set = mode_set;
if (wd->multi)
elm_genlist_item_selected_set(it2, EINA_FALSE);
}
- if (((wd->mode_type) && (strcmp(mode_type, wd->mode_type))) ||
+ if (((wd->decorate_type) && (strcmp(decorate_type, wd->decorate_type))) ||
(mode_set) ||
((_it == wd->mode_item) && (!mode_set)))
_item_mode_unset(wd);
- eina_stringshare_replace(&wd->mode_type, mode_type);
+ eina_stringshare_replace(&wd->decorate_type, decorate_type);
if (mode_set) _item_mode_set(_it);
}
{
ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
- return _it->wd->mode_type;
+ return _it->wd->decorate_type;
}
EAPI const Elm_Object_Item *