summaryrefslogtreecommitdiff
path: root/src/examples/elementary
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-08-13 11:30:06 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-08-14 12:08:11 -0700
commitc3f78d8b4f860956943d8fa9714b1ae13c48febe (patch)
treef0dabed56199653fe07b230784fa9f72b5705a4f /src/examples/elementary
parentc375bbcfa7f224e2be540cf122488b477032c9c1 (diff)
efl_ui: update efl_ui_list_view example to work
seems name for the model property_name is now allowed, so fix it to title and now it works well. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9558
Diffstat (limited to 'src/examples/elementary')
-rw-r--r--src/examples/elementary/efl_ui_list_view_example_1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/elementary/efl_ui_list_view_example_1.c b/src/examples/elementary/efl_ui_list_view_example_1.c
index 7848901..c0b377b 100644
--- a/src/examples/elementary/efl_ui_list_view_example_1.c
+++ b/src/examples/elementary/efl_ui_list_view_example_1.c
@@ -61,7 +61,7 @@ _make_model(Evas_Object *win)
61 61
62 snprintf(buf, sizeof(buf), "Item # %i", i); 62 snprintf(buf, sizeof(buf), "Item # %i", i);
63 eina_value_set(&vtext, buf); 63 eina_value_set(&vtext, buf);
64 efl_model_property_set(child, "name", &vtext); 64 efl_model_property_set(child, "title", &vtext);
65 } 65 }
66 66
67 eina_value_flush(&vtext); 67 eina_value_flush(&vtext);
@@ -90,7 +90,7 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
90 efl_ui_widget_factory_item_class_set(factory, EFL_UI_LIST_DEFAULT_ITEM_CLASS); 90 efl_ui_widget_factory_item_class_set(factory, EFL_UI_LIST_DEFAULT_ITEM_CLASS);
91 efl_ui_property_bind(factory, "signal/efl,state,%v", "odd_style"); 91 efl_ui_property_bind(factory, "signal/efl,state,%v", "odd_style");
92 efl_ui_property_bind(factory, "signal/efl,state,%{selected;unselected}", "selected"); 92 efl_ui_property_bind(factory, "signal/efl,state,%{selected;unselected}", "selected");
93 efl_ui_property_bind(factory, "efl.text", "name"); 93 efl_ui_property_bind(factory, "efl.text", "title");
94 94
95 li = efl_add(EFL_UI_LIST_VIEW_CLASS, win 95 li = efl_add(EFL_UI_LIST_VIEW_CLASS, win
96 , efl_ui_list_view_layout_factory_set(efl_added, factory) 96 , efl_ui_list_view_layout_factory_set(efl_added, factory)