summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Jr <larry.olj@gmail.com>2017-11-20 17:10:23 -0200
committerLarry Jr <larry.olj@gmail.com>2017-11-21 13:33:29 -0200
commitcf4a75a0bcc819ef94df7df1694104c3f434498c (patch)
tree5fb70624c6bc1178cc0105364824419ad2a19d10
parentbf4841350e92b8332611e660c3a1d8b5c5997f2f (diff)
downloadefl-cf4a75a0bcc819ef94df7df1694104c3f434498c.tar.gz
Elm: update efl-ui-list example
-rw-r--r--src/examples/elementary/efl_ui_list_example_3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/examples/elementary/efl_ui_list_example_3.c b/src/examples/elementary/efl_ui_list_example_3.c
index c4c8d4241e..262255158a 100644
--- a/src/examples/elementary/efl_ui_list_example_3.c
+++ b/src/examples/elementary/efl_ui_list_example_3.c
@@ -214,6 +214,9 @@ elm_main(int argc, char **argv)
elm_box_pack_end(bx, priv->list1);
efl_ui_list_layout_factory_set(priv->list1, factory);
+ factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
+ efl_ui_model_connect(factory, "elm.text", "filename");
+ efl_ui_layout_factory_theme_config(factory, "list", "item", "default");
priv->list2 = efl_add(EFL_UI_LIST_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
efl_event_callback_add(priv->list2, EFL_UI_LIST_EVENT_ITEM_REALIZED, _realized_2_cb, priv->list2);
evas_object_size_hint_weight_set(priv->list2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);