summaryrefslogtreecommitdiff
path: root/src/examples/elementary/efl_ui_list_view_example_3.c
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-04-23 07:34:32 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-04-23 12:40:57 -0700
commitcaa1542610a7073706f5e5200d58075ea83b04b1 (patch)
tree66762d3658ad2387c49a82e6341fef904cb42f9f /src/examples/elementary/efl_ui_list_view_example_3.c
parent1ec4ad155688df9b1cec8e608481d64e776feae8 (diff)
examples : update list_view examples to use item_class_set not layout_theme_config.
widget_factory support item_class_set for factory created child. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8684
Diffstat (limited to 'src/examples/elementary/efl_ui_list_view_example_3.c')
-rw-r--r--src/examples/elementary/efl_ui_list_view_example_3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/elementary/efl_ui_list_view_example_3.c b/src/examples/elementary/efl_ui_list_view_example_3.c
index c027856df7..5a233b3430 100644
--- a/src/examples/elementary/efl_ui_list_view_example_3.c
+++ b/src/examples/elementary/efl_ui_list_view_example_3.c
@@ -223,7 +223,7 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
223 priv->model = _make_model(); 223 priv->model = _make_model();
224 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win); 224 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
225 efl_ui_property_bind(factory, "efl.text", "filename"); 225 efl_ui_property_bind(factory, "efl.text", "filename");
226 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default"); 226 efl_ui_widget_factory_item_class_set(factory, EFL_UI_LIST_DEFAULT_ITEM_CLASS);
227 227
228 priv->list1 = efl_add(EFL_UI_LIST_VIEW_CLASS, win, efl_ui_view_model_set(efl_added, priv->model)); 228 priv->list1 = efl_add(EFL_UI_LIST_VIEW_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
229 efl_event_callback_add(priv->list1, EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED, _realized_1_cb, priv); 229 efl_event_callback_add(priv->list1, EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED, _realized_1_cb, priv);
@@ -235,7 +235,7 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
235 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win); 235 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
236 efl_ui_property_bind(factory, "efl.text", "filename"); 236 efl_ui_property_bind(factory, "efl.text", "filename");
237 efl_ui_property_bind(factory, "signal/efl,state,%v", "selected"); 237 efl_ui_property_bind(factory, "signal/efl,state,%v", "selected");
238 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default"); 238 efl_ui_widget_factory_item_class_set(factory, EFL_UI_LIST_DEFAULT_ITEM_CLASS);
239 priv->list2 = efl_add(EFL_UI_LIST_VIEW_CLASS, win, efl_ui_view_model_set(efl_added, priv->model)); 239 priv->list2 = efl_add(EFL_UI_LIST_VIEW_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
240 efl_event_callback_add(priv->list2, EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED, _realized_2_cb, priv->list2); 240 efl_event_callback_add(priv->list2, EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED, _realized_2_cb, priv->list2);
241 evas_object_size_hint_weight_set(priv->list2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 241 evas_object_size_hint_weight_set(priv->list2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);