git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66823
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
fclasses = evas_object_data_get(win, "font_classes_list");
it = elm_list_selected_item_get(fclasses);
if (!it) return;
fclasses = evas_object_data_get(win, "font_classes_list");
it = elm_list_selected_item_get(fclasses);
if (!it) return;
- tc_data = elm_list_item_data_get(it);
+ tc_data = elm_object_item_data_get(it);
fnames = evas_object_data_get(win, "font_names_list");
fstyles = evas_object_data_get(win, "font_styles_list");
fnames = evas_object_data_get(win, "font_names_list");
fstyles = evas_object_data_get(win, "font_styles_list");
fclasses = evas_object_data_get(win, "font_classes_list");
it = elm_list_selected_item_get(fclasses);
if (!it) return;
fclasses = evas_object_data_get(win, "font_classes_list");
it = elm_list_selected_item_get(fclasses);
if (!it) return;
- tc_data = elm_list_item_data_get(it);
+ tc_data = elm_object_item_data_get(it);
fnames = evas_object_data_get(win, "font_names_list");
fstyles = evas_object_data_get(win, "font_styles_list");
fnames = evas_object_data_get(win, "font_names_list");
fstyles = evas_object_data_get(win, "font_styles_list");
l_items = elm_list_items_get(evas_object_data_get(win, "engines_list"));
EINA_LIST_FOREACH(l_items, l, it)
{
l_items = elm_list_items_get(evas_object_data_get(win, "engines_list"));
EINA_LIST_FOREACH(l_items, l, it)
{
- if (!strcmp(elm_list_item_data_get(it), curr_engine))
+ if (!strcmp(elm_object_item_data_get(it), curr_engine))
{
elm_list_item_selected_set(it, EINA_TRUE);
break;
{
elm_list_item_selected_set(it, EINA_TRUE);
break;
const char *selection;
li = data;
const char *selection;
li = data;
- selection = elm_list_item_data_get(elm_list_selected_item_get(li));
+ selection = elm_object_item_data_get(elm_list_selected_item_get(li));
if (!strcmp(elm_engine_current_get(), selection))
return;
if (!strcmp(elm_engine_current_get(), selection))
return;
const char *profile;
li = data;
const char *profile;
li = data;
- selection = elm_list_item_data_get(elm_list_selected_item_get(li));
+ selection = elm_object_item_data_get(elm_list_selected_item_get(li));
profile = elm_profile_current_get();
if (!profile)
profile = elm_profile_current_get();
if (!profile)
Evas_Object *li;
li = data;
Evas_Object *li;
li = data;
- selection = elm_list_item_data_get(elm_list_selected_item_get(li));
+ selection = elm_object_item_data_get(elm_list_selected_item_get(li));
curr = elm_profile_current_get();
elm_config_save(); /* dump config into old profile's data dir */
curr = elm_profile_current_get();
elm_config_save(); /* dump config into old profile's data dir */
}
EINA_LIST_REVERSE_FOREACH((Eina_List*)tsel, l, it)
{
}
EINA_LIST_REVERSE_FOREACH((Eina_List*)tsel, l, it)
{
- Theme *t = elm_list_item_data_get(it);
+ Theme *t = elm_object_item_data_get(it);
eina_strbuf_append_printf(newth, "%s:", t->name);
if ((!l->prev) && strcmp(t->name, "default"))
/* ensure default theme is always there for fallback */
eina_strbuf_append_printf(newth, "%s:", t->name);
if ((!l->prev) && strcmp(t->name, "default"))
/* ensure default theme is always there for fallback */
Evas_Object *f_names_list;
Elm_List_Item *it;
Evas_Object *f_names_list;
Elm_List_Item *it;
- tc_data = elm_list_item_data_get(event_info);
+ tc_data = elm_object_item_data_get(event_info);
f_names_list = evas_object_data_get(elm_object_top_widget_get(obj),
"font_names_list");
f_names_list = evas_object_data_get(elm_object_top_widget_get(obj),
"font_names_list");
- l = elm_list_item_label_get(it);
+ l = elm_object_item_text_get(it);
if (tc_data->font && !strcmp(l, tc_data->font))
{
if (tc_data->font && !strcmp(l, tc_data->font))
{
const Eina_List *l;
it = event_info;
const Eina_List *l;
it = event_info;
- sel_font = elm_list_item_label_get(it);
+ sel_font = elm_object_item_text_get(it);
win = elm_object_top_widget_get(obj);
style_list = evas_object_data_get(win, "font_styles_list");
win = elm_object_top_widget_get(obj);
style_list = evas_object_data_get(win, "font_styles_list");
eina_stringshare_replace(&fdata.cur_font, sel_font);
eina_stringshare_replace(&fdata.cur_font, sel_font);
- tc_data = elm_list_item_data_get(fc_it);
+ tc_data = elm_object_item_data_get(fc_it);
if (tc_data->font) eina_stringshare_del(tc_data->font);
if (fdata.cur_font) tc_data->font = eina_stringshare_ref(fdata.cur_font);
if (tc_data->font) eina_stringshare_del(tc_data->font);
if (fdata.cur_font) tc_data->font = eina_stringshare_ref(fdata.cur_font);
if (!it) return; /* should not happen */
eina_stringshare_replace(&fdata.cur_style,
if (!it) return; /* should not happen */
eina_stringshare_replace(&fdata.cur_style,
- elm_list_item_label_get(event_info));
+ elm_object_item_text_get(event_info));
ELM_LIST_ENABLE(fs_list);
ELM_LIST_ENABLE(fs_list);
- tc_data = elm_list_item_data_get(it);
+ tc_data = elm_object_item_data_get(it);
eina_stringshare_del(tc_data->style);
tc_data->style = eina_stringshare_ref(fdata.cur_style);
eina_stringshare_del(tc_data->style);
tc_data->style = eina_stringshare_ref(fdata.cur_style);
{
Elm_Font_Size_Data *sdata;
{
Elm_Font_Size_Data *sdata;
- sdata = elm_list_item_data_get(it);
+ sdata = elm_object_item_data_get(it);
elm_list_item_selected_set(l->data, EINA_FALSE);
if (tc_data->size == sdata->size)
elm_list_item_selected_set(l->data, EINA_FALSE);
if (tc_data->size == sdata->size)
it = elm_list_selected_item_get(fc_list);
if (!it) return; /* should not happen */
it = elm_list_selected_item_get(fc_list);
if (!it) return; /* should not happen */
- sd = elm_list_item_data_get(event_info);
+ sd = elm_object_item_data_get(event_info);
fdata.cur_size = sd->size;
fdata.cur_size = sd->size;
- tc_data = elm_list_item_data_get(it);
+ tc_data = elm_object_item_data_get(it);
tc_data->size = fdata.cur_size;
_font_preview_update(win);
tc_data->size = fdata.cur_size;
_font_preview_update(win);
test_index2_cmp(const void *data1, const void *data2)
{
const char *label1, *label2;
test_index2_cmp(const void *data1, const void *data2)
{
const char *label1, *label2;
- const Elm_List_Item *it1 = data1;
- const Elm_List_Item *it2 = data2;
+ const Elm_Object_Item *li_it1 = data1;
+ const Elm_Object_Item *li_it2 = data2;
- label1 = elm_list_item_label_get(it1);
- label2 = elm_list_item_label_get(it2);
+ label1 = elm_object_item_text_get(li_it1);
+ label2 = elm_object_item_text_get(li_it2);
return strcasecmp(label1, label2);
}
return strcasecmp(label1, label2);
}
- label = elm_list_item_label_get(it);
- label_next = elm_list_item_label_get(it_next);
+ label = elm_object_item_text_get(it);
+ label_next = elm_object_item_text_get(it_next);
iit = elm_index_item_find(gui->id, it);
if (label[0] == label_next[0])
iit = elm_index_item_find(gui->id, it);
if (label[0] == label_next[0])
char *item_data;
if ((!event_info) || (!data)) return;
char *item_data;
if ((!event_info) || (!data)) return;
- item_data = elm_list_item_data_get(event_info);
+ item_data = elm_object_item_data_get(event_info);
box = elm_box_add(info->win);
elm_box_horizontal_set(box, EINA_FALSE);
box = elm_box_add(info->win);
elm_box_horizontal_set(box, EINA_FALSE);
void *event_info)
{
Evas_Object *button;
void *event_info)
{
Evas_Object *button;
- struct list5_data_cb *info = elm_list_item_data_get(event_info);
+ struct list5_data_cb *info = elm_object_item_data_get(event_info);
- if (elm_list_item_end_get(event_info)) return;
+ if (elm_object_item_part_content_get(event_info, "end")) return;
button = elm_button_add(info->win);
elm_object_text_set(button, "delete");
evas_object_propagate_events_set(button, 0);
evas_object_smart_callback_add(button, "clicked", test_list5_item_del,
event_info);
button = elm_button_add(info->win);
elm_object_text_set(button, "delete");
evas_object_propagate_events_set(button, 0);
evas_object_smart_callback_add(button, "clicked", test_list5_item_del,
event_info);
- elm_list_item_end_set(event_info, button);
+ elm_object_item_part_content_set(event_info, "end", button);
fprintf(stdout, "Deleting associated list node (%s). Comparing index "
"item data reported via callback with the one returned by "
"index's API on items: %s.\n",
fprintf(stdout, "Deleting associated list node (%s). Comparing index "
"item data reported via callback with the one returned by "
"index's API on items: %s.\n",
- elm_list_item_label_get(data),
+ elm_object_item_text_get(data),
data == elm_index_item_data_get(event_info) ? "OK" :
"FAIL, something went wrong");
data == elm_index_item_data_get(event_info) ? "OK" :
"FAIL, something went wrong");
fprintf(stdout, "Deleting last selected index item, which had letter"
" %s (pointing to %s)\n", elm_index_item_letter_get(iit),
fprintf(stdout, "Deleting last selected index item, which had letter"
" %s (pointing to %s)\n", elm_index_item_letter_get(iit),
- elm_list_item_label_get(lit));
+ elm_object_item_text_get(lit));
elm_index_item_del(d.index, lit);
}
elm_index_item_del(d.index, lit);
}
_sel_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_List_Item *it = event_info;
_sel_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_List_Item *it = event_info;
- printf("Selected label: %s\n", elm_list_item_label_get(it));
+ printf("Selected label: %s\n", elm_object_item_text_get(it));
char *content = data;
Elm_List_Item *it = event_info;
printf("Selected label: %s with data: %s\n",
char *content = data;
Elm_List_Item *it = event_info;
printf("Selected label: %s with data: %s\n",
- elm_list_item_label_get(it), content);
+ elm_object_item_text_get(it), content);
items = elm_list_items_get(li);
EINA_LIST_FOREACH(items, l, it)
items = elm_list_items_get(li);
EINA_LIST_FOREACH(items, l, it)
- printf("%s\n", elm_list_item_label_get(it));
+ printf("%s\n", elm_object_item_text_get(it));