summaryrefslogtreecommitdiff
path: root/src/examples/elementary/filemvc.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-15 14:44:41 +0100
committerTom Hacohen <tom@stosb.com>2016-08-15 15:07:42 +0100
commite65aae994e72c1d3f8ac6b5360d3772f177b77ef (patch)
tree7ecaf136e45470635889191aded2b47057720a98 /src/examples/elementary/filemvc.c
parent35abb3c34d10a4826c98055fb85ecf93915e5ea8 (diff)
Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
Diffstat (limited to 'src/examples/elementary/filemvc.c')
-rw-r--r--src/examples/elementary/filemvc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/examples/elementary/filemvc.c b/src/examples/elementary/filemvc.c
index b669c02869..d28a593f8c 100644
--- a/src/examples/elementary/filemvc.c
+++ b/src/examples/elementary/filemvc.c
@@ -32,10 +32,10 @@ static void
32_cleanup_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 32_cleanup_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
33{ 33{
34 Efl_Model_Test_Filemvc_Data *priv = (Efl_Model_Test_Filemvc_Data *)data; 34 Efl_Model_Test_Filemvc_Data *priv = (Efl_Model_Test_Filemvc_Data *)data;
35 eo_unref(priv->fileview); 35 efl_unref(priv->fileview);
36 eo_unref(priv->treeview); 36 efl_unref(priv->treeview);
37 eo_unref(priv->formview); 37 efl_unref(priv->formview);
38 eo_unref(priv->treemodel); 38 efl_unref(priv->treemodel);
39} 39}
40 40
41static Eina_Bool 41static Eina_Bool
@@ -65,7 +65,7 @@ _promise_then(void *data, void *value)
65 Eo *model; 65 Eo *model;
66 66
67 eina_value_get(value, &path); 67 eina_value_get(value, &path);
68 model = eo_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(eo_self, path)); 68 model = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_self, path));
69 elm_view_list_model_set(priv->fileview, model); 69 elm_view_list_model_set(priv->fileview, model);
70} 70}
71 71
@@ -144,12 +144,12 @@ elm_main(int argc, char **argv)
144 else dirname = EFL_MODEL_TEST_FILENAME_PATH; 144 else dirname = EFL_MODEL_TEST_FILENAME_PATH;
145 145
146 //treemodel 146 //treemodel
147 priv.treemodel = eo_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(eo_self, dirname)); 147 priv.treemodel = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_self, dirname));
148 eio_model_children_filter_set(priv.treemodel, _filter_cb, NULL); 148 eio_model_children_filter_set(priv.treemodel, _filter_cb, NULL);
149 149
150 //treeview 150 //treeview
151 genlist = elm_genlist_add(win); 151 genlist = elm_genlist_add(win);
152 priv.treeview = eo_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(eo_self, genlist, ELM_GENLIST_ITEM_TREE, NULL)); 152 priv.treeview = efl_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(efl_self, genlist, ELM_GENLIST_ITEM_TREE, NULL));
153 elm_view_list_property_connect(priv.treeview, "filename", "elm.text"); 153 elm_view_list_property_connect(priv.treeview, "filename", "elm.text");
154 elm_view_list_property_connect(priv.treeview, "icon", "elm.swallow.icon"); 154 elm_view_list_property_connect(priv.treeview, "icon", "elm.swallow.icon");
155 elm_view_list_model_set(priv.treeview, priv.treemodel); 155 elm_view_list_model_set(priv.treeview, priv.treemodel);
@@ -164,7 +164,7 @@ elm_main(int argc, char **argv)
164 164
165 //listview 165 //listview
166 genlist = elm_genlist_add(win); 166 genlist = elm_genlist_add(win);
167 priv.fileview = eo_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(eo_self, genlist, ELM_GENLIST_ITEM_NONE, "double_label")); 167 priv.fileview = efl_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(efl_self, genlist, ELM_GENLIST_ITEM_NONE, "double_label"));
168 elm_view_list_property_connect(priv.fileview, "filename", "elm.text"); 168 elm_view_list_property_connect(priv.fileview, "filename", "elm.text");
169 elm_view_list_property_connect(priv.fileview, "mime_type", "elm.text.sub"); 169 elm_view_list_property_connect(priv.fileview, "mime_type", "elm.text.sub");
170 170
@@ -178,7 +178,7 @@ elm_main(int argc, char **argv)
178 bxr = elm_box_add(win); 178 bxr = elm_box_add(win);
179 _widget_init(bxr); 179 _widget_init(bxr);
180 elm_object_part_content_set(vpanes, "right", bxr); 180 elm_object_part_content_set(vpanes, "right", bxr);
181 priv.formview = eo_add(ELM_VIEW_FORM_CLASS, NULL); 181 priv.formview = efl_add(ELM_VIEW_FORM_CLASS, NULL);
182 182
183 /*Label widget */ 183 /*Label widget */
184 elm_view_form_widget_add(priv.formview, "filename", _label_init(win, bxr, "File Name")); 184 elm_view_form_widget_add(priv.formview, "filename", _label_init(win, bxr, "File Name"));