void *event_info)
{
Elm_Object_Item *glit = event_info;
- Evas_Object *gl = elm_genlist_item_genlist_get(glit);
- int val = (int) elm_object_item_data_get(glit);
+ Evas_Object *gl = elm_object_item_widget_get(glit);
+ int val = (int)(long) elm_object_item_data_get(glit);
Elm_Object_Item *glit1, *glit2, *glit3;
val *= 10;
- glit1 = elm_genlist_item_append(gl, &itct, (void *)(long)(val + 1), glit,
+ glit1 = elm_genlist_item_append(gl, &itct, (void *)(long) (val + 1), glit,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
- glit2 = elm_genlist_item_append(gl, &itct, (void *)(long)(val + 2), glit,
+ glit2 = elm_genlist_item_append(gl, &itct, (void *)(long) (val + 2), glit,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
- glit3 = elm_genlist_item_append(gl, &itct, (void *)(long)(val + 3), glit,
- ELM_GENLIST_ITEM_SUBITEMS, NULL, NULL);
+ glit3 = elm_genlist_item_append(gl, &itct, (void *)(long) (val + 3), glit,
+ ELM_GENLIST_ITEM_TREE, NULL, NULL);
elm_genlist_item_tooltip_text_set(glit1, "Testing A");
elm_genlist_item_tooltip_text_set(glit2, "Testing B");
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
- elm_icon_scale_set(ic, 0, 0);
+ elm_icon_resizable_set(ic, 0, 0);
evas_object_resize(ic, 64, 64);
return ic;
}
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
- elm_icon_scale_set(ic, 0, 0);
+ elm_icon_resizable_set(ic, 0, 0);
return ic;
}
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
- elm_icon_scale_set(ic, 0, 0);
+ elm_icon_resizable_set(ic, 0, 0);
evas_object_resize(ic, 64, 64);
return ic;
}
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/icon_00.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
- elm_icon_scale_set(ic, 0, 0);
+ elm_icon_resizable_set(ic, 0, 0);
evas_object_resize(ic, 64, 64);
return ic;
}
ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(se, "Hello, some scrolled entry here!");
elm_object_tooltip_text_set(se, "Type something here!");
- elm_entry_single_line_set(se, 1);
+ elm_entry_single_line_set(se, EINA_TRUE);
elm_box_pack_end(bx, se);
evas_object_show(se);
itct.func.text_get = gltt_text_get;
glit1 = elm_genlist_item_append(gl, &itct, (void *)1, NULL,
- ELM_GENLIST_ITEM_SUBITEMS, NULL, NULL);
+ ELM_GENLIST_ITEM_TREE, NULL, NULL);
glit2 = elm_genlist_item_append(gl, &itct, (void *)2, NULL,
- ELM_GENLIST_ITEM_SUBITEMS, NULL, NULL);
+ ELM_GENLIST_ITEM_TREE, NULL, NULL);
glit3 = elm_genlist_item_append(gl, &itct, (void *)3, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);