forked from enlightenment/efl
elm genlist: Fixed wrong member name. 'mode_item_style' -> 'decorate_item_style'
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com> SVN revision: 69096
This commit is contained in:
parent
a38ae3b4ca
commit
5e6a70c7d8
|
@ -48,7 +48,7 @@ struct _Elm_Gen_Item_Class
|
||||||
unsigned int refcount; /**< Set it to 0 if you use your own const class, or its managed for you by class ref/unref calls */
|
unsigned int refcount; /**< Set it to 0 if you use your own const class, or its managed for you by class ref/unref calls */
|
||||||
Eina_Bool delete_me : 1; /**< Leave this alone - set it to 0 if you have a const class of your own */
|
Eina_Bool delete_me : 1; /**< Leave this alone - set it to 0 if you have a const class of your own */
|
||||||
const char *item_style; /**< Name of the visual style to use for this item. If you don't know use "default" */
|
const char *item_style; /**< Name of the visual style to use for this item. If you don't know use "default" */
|
||||||
const char *mode_item_style; /**< Style used if item is set to a specific mode. @see elm_genlist_item_mode_set() or NULL if you don't care. currently it's used only in genlist. */
|
const char *decorate_item_style; /**< Style used if item is set to a decorate mode. @see elm_genlist_item_decorate_mode_set() or NULL if you don't care. currently it's used only in genlist. */
|
||||||
const char *edit_item_style; /**< Style to use when in edit mode, or NULL if you don't care. currently it's used only in genlist. */
|
const char *edit_item_style; /**< Style to use when in edit mode, or NULL if you don't care. currently it's used only in genlist. */
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -125,7 +125,7 @@ struct _Widget_Data
|
||||||
Elm_List_Mode mode;
|
Elm_List_Mode mode;
|
||||||
Ecore_Timer *multi_timer, *scr_hold_timer;
|
Ecore_Timer *multi_timer, *scr_hold_timer;
|
||||||
Ecore_Animator *reorder_move_animator;
|
Ecore_Animator *reorder_move_animator;
|
||||||
const char *mode_type;
|
const char *decorate_type;
|
||||||
double start_time;
|
double start_time;
|
||||||
Evas_Coord prev_x, prev_y, prev_mx, prev_my;
|
Evas_Coord prev_x, prev_y, prev_mx, prev_my;
|
||||||
Evas_Coord cur_x, cur_y, cur_mx, cur_my;
|
Evas_Coord cur_x, cur_y, cur_mx, cur_my;
|
||||||
|
|
|
@ -542,7 +542,7 @@ _del_hook(Evas_Object *obj)
|
||||||
if (wd->queue_idle_enterer) ecore_idle_enterer_del(wd->queue_idle_enterer);
|
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->must_recalc_idler) ecore_idler_del(wd->must_recalc_idler);
|
||||||
if (wd->multi_timer) ecore_timer_del(wd->multi_timer);
|
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);
|
if (wd->scr_hold_timer) ecore_timer_del(wd->scr_hold_timer);
|
||||||
free(wd);
|
free(wd);
|
||||||
}
|
}
|
||||||
|
@ -1532,7 +1532,7 @@ _mode_finished_signal_cb(void *data,
|
||||||
_mode_item_unrealize(it);
|
_mode_item_unrealize(it);
|
||||||
if (it->item->group_item)
|
if (it->item->group_item)
|
||||||
evas_object_raise(it->item->VIEW(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);
|
edje_object_signal_callback_del_full(obj, buf, "elm", _mode_finished_signal_cb, it);
|
||||||
evas_event_thaw(te);
|
evas_event_thaw(te);
|
||||||
evas_event_thaw_eval(te);
|
evas_event_thaw_eval(te);
|
||||||
|
@ -3157,7 +3157,7 @@ _mode_item_realize(Elm_Gen_Item *it)
|
||||||
|
|
||||||
if (it->item->order_num_in & 0x1) strncat(buf, "_odd", sizeof(buf) - strlen(buf));
|
if (it->item->order_num_in & 0x1) strncat(buf, "_odd", sizeof(buf) - strlen(buf));
|
||||||
strncat(buf, "/", 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_theme_object_set(WIDGET(it), it->item->mode_view, "genlist", buf,
|
||||||
elm_widget_style_get(WIDGET(it)));
|
elm_widget_style_get(WIDGET(it)));
|
||||||
|
@ -3247,7 +3247,7 @@ _item_mode_set(Elm_Gen_Item *it)
|
||||||
evas_event_thaw(evas_object_evas_get(it->wd->obj));
|
evas_event_thaw(evas_object_evas_get(it->wd->obj));
|
||||||
evas_event_thaw_eval(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");
|
edje_object_signal_emit(it->item->mode_view, buf, "elm");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3262,8 +3262,8 @@ _item_mode_unset(Widget_Data *wd)
|
||||||
it = wd->mode_item;
|
it = wd->mode_item;
|
||||||
it->item->nocache_once = EINA_TRUE;
|
it->item->nocache_once = EINA_TRUE;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "elm,state,%s,passive", wd->mode_type);
|
snprintf(buf, sizeof(buf), "elm,state,%s,passive", wd->decorate_type);
|
||||||
snprintf(buf2, sizeof(buf2), "elm,state,%s,passive,finished", wd->mode_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_emit(it->item->mode_view, buf, "elm");
|
||||||
edje_object_signal_callback_add(it->item->mode_view, buf2, "elm", _mode_finished_signal_cb, it);
|
edje_object_signal_callback_add(it->item->mode_view, buf2, "elm", _mode_finished_signal_cb, it);
|
||||||
|
@ -5444,7 +5444,7 @@ elm_genlist_realized_items_update(Evas_Object *obj)
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
elm_genlist_item_decorate_mode_set(Elm_Object_Item *it,
|
elm_genlist_item_decorate_mode_set(Elm_Object_Item *it,
|
||||||
const char *mode_type,
|
const char *decorate_type,
|
||||||
Eina_Bool mode_set)
|
Eina_Bool mode_set)
|
||||||
{
|
{
|
||||||
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
|
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
|
||||||
|
@ -5455,16 +5455,16 @@ elm_genlist_item_decorate_mode_set(Elm_Object_Item *it,
|
||||||
Elm_Object_Item *it2;
|
Elm_Object_Item *it2;
|
||||||
|
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
if (!mode_type) return;
|
if (!decorate_type) return;
|
||||||
if ((_it->generation < _it->wd->generation) ||
|
if ((_it->generation < _it->wd->generation) ||
|
||||||
elm_widget_item_disabled_get(_it)) return;
|
elm_widget_item_disabled_get(_it)) return;
|
||||||
if (wd->decorate_mode) return;
|
if (wd->decorate_mode) return;
|
||||||
|
|
||||||
if ((wd->mode_item == _it) &&
|
if ((wd->mode_item == _it) &&
|
||||||
(!strcmp(mode_type, wd->mode_type)) &&
|
(!strcmp(decorate_type, wd->decorate_type)) &&
|
||||||
(mode_set))
|
(mode_set))
|
||||||
return;
|
return;
|
||||||
if (!_it->itc->mode_item_style) return;
|
if (!_it->itc->decorate_item_style) return;
|
||||||
_it->mode_set = mode_set;
|
_it->mode_set = mode_set;
|
||||||
|
|
||||||
if (wd->multi)
|
if (wd->multi)
|
||||||
|
@ -5480,12 +5480,12 @@ elm_genlist_item_decorate_mode_set(Elm_Object_Item *it,
|
||||||
elm_genlist_item_selected_set(it2, EINA_FALSE);
|
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) ||
|
(mode_set) ||
|
||||||
((_it == wd->mode_item) && (!mode_set)))
|
((_it == wd->mode_item) && (!mode_set)))
|
||||||
_item_mode_unset(wd);
|
_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);
|
if (mode_set) _item_mode_set(_it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5494,7 +5494,7 @@ elm_genlist_item_decorate_mode_get(const Elm_Object_Item *it)
|
||||||
{
|
{
|
||||||
ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
|
ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
|
||||||
Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
|
Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
|
||||||
return _it->wd->mode_type;
|
return _it->wd->decorate_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI const Elm_Object_Item *
|
EAPI const Elm_Object_Item *
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
* - @c item_style - This is a constant string and simply defines the name
|
* - @c item_style - This is a constant string and simply defines the name
|
||||||
* of the item style. It @b must be specified and the default should be @c
|
* of the item style. It @b must be specified and the default should be @c
|
||||||
* "default".
|
* "default".
|
||||||
* - @c mode_item_style - This is a constant string and simply defines the name
|
* - @c decorate_item_style - This is a constant string and simply defines the name
|
||||||
* of the mode item style. It is used to specify mode item style. It can be
|
* of the mode item style. It is used to specify mode item style. It can be
|
||||||
* used to set sweep mode.
|
* used to set sweep mode.
|
||||||
* - @c edit_item_style - This is a constant string and simply defines the name
|
* - @c edit_item_style - This is a constant string and simply defines the name
|
||||||
|
|
Loading…
Reference in New Issue