summaryrefslogtreecommitdiff
path: root/src/examples/elementary/filemvc.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-09-05 16:57:35 +0100
committerTom Hacohen <tom@stosb.com>2016-09-05 16:59:56 +0100
commit9c779dca90bea36ad43c77597f107dd157a33c46 (patch)
tree7f53cf04ccbb1ca6be0cd42983692f61f44c696f /src/examples/elementary/filemvc.c
parent5eedad98fe4fe696593147c87ae2278d76e4c9db (diff)
Rename efl_self to efl_added
It has been discussed on the ML (thread: "[RFC] rename efl_self") and IRC, and has been decided we should rename it to this in order to avoid confusion with the already established meaning of self which is very similar to what we were using it for, but didn't have complete overlap. Kudos to Marcel Hollerbach for initiating the discussion and fighting for it until he convinced a significant mass. :) This commit breaks API, and depending on compiler potentially ABI. @feature
Diffstat (limited to 'src/examples/elementary/filemvc.c')
-rw-r--r--src/examples/elementary/filemvc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/elementary/filemvc.c b/src/examples/elementary/filemvc.c
index 22fc5e39de..4441df27ab 100644
--- a/src/examples/elementary/filemvc.c
+++ b/src/examples/elementary/filemvc.c
@@ -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 = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_self, path)); 68 model = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_added, 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 = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_self, dirname)); 147 priv.treemodel = efl_add(EIO_MODEL_CLASS, NULL, eio_model_path_set(efl_added, 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 = efl_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(efl_self, genlist, ELM_GENLIST_ITEM_TREE, NULL)); 152 priv.treeview = efl_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(efl_added, 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 = efl_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(efl_self, genlist, ELM_GENLIST_ITEM_NONE, "double_label")); 167 priv.fileview = efl_add(ELM_VIEW_LIST_CLASS, NULL, elm_view_list_genlist_set(efl_added, 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