summaryrefslogtreecommitdiff
path: root/src/examples/elementary/efl_ui_list_view_example_1.c
diff options
context:
space:
mode:
authorLarry Lira <larry@expertisesolutions.com.br>2018-11-29 15:11:51 -0200
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-11-30 16:56:47 -0200
commit6b0c85cb0da92e1e00d867e115ffe2827e2e3853 (patch)
tree537467990ce39d4917d285f5f7dc40e90c590dff /src/examples/elementary/efl_ui_list_view_example_1.c
parent0398b8f19c2adcf206ec298ded8ce4dd1681a501 (diff)
Efl.Ui.List.View: fixed MVVM life-cycle
Fix bugs on Views and Model related with null items and proper ownership and life-cycle of components. Configure default theme for default factory on finalize.
Diffstat (limited to 'src/examples/elementary/efl_ui_list_view_example_1.c')
-rw-r--r--src/examples/elementary/efl_ui_list_view_example_1.c5
1 files changed, 2 insertions, 3 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 f0a6adcfb8..dc300264aa 100644
--- a/src/examples/elementary/efl_ui_list_view_example_1.c
+++ b/src/examples/elementary/efl_ui_list_view_example_1.c
@@ -22,7 +22,7 @@ const char *styles[] = {
22char edj_path[PATH_MAX]; 22char edj_path[PATH_MAX];
23 23
24static void 24static void
25_realized_cb(void *data, const Efl_Event *event) 25_realized_cb(void *data EINA_UNUSED, const Efl_Event *event)
26{ 26{
27 Efl_Ui_List_View_Item_Event *ie = event->info; 27 Efl_Ui_List_View_Item_Event *ie = event->info;
28 if (!ie->layout) return; 28 if (!ie->layout) return;
@@ -69,7 +69,7 @@ _make_model(Evas_Object *win)
69} 69}
70 70
71EAPI_MAIN int 71EAPI_MAIN int
72elm_main(int argc, char **argv) 72elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
73{ 73{
74 Efl_Ui_Factory *factory; 74 Efl_Ui_Factory *factory;
75 Evas_Object *win, *li; 75 Evas_Object *win, *li;
@@ -110,7 +110,6 @@ elm_main(int argc, char **argv)
110 evas_object_show(win); 110 evas_object_show(win);
111 111
112 elm_run(); 112 elm_run();
113 efl_unref(model);
114 113
115 return 0; 114 return 0;
116} 115}