summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.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/lib/eio/eio_model.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/lib/eio/eio_model.c')
-rw-r--r--src/lib/eio/eio_model.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index a7ab949..40663f8 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -171,7 +171,7 @@ _efl_model_evt_added_ecore_cb(void *data, int type, void *event)
171 eina_stringshare_del(spath); 171 eina_stringshare_del(spath);
172 } 172 }
173 173
174 cevt.child = efl_add_ref(EIO_MODEL_CLASS, priv->obj, eio_model_path_set(efl_self, evt->filename)); 174 cevt.child = efl_add_ref(EIO_MODEL_CLASS, priv->obj, eio_model_path_set(efl_added, evt->filename));
175 priv->children_list = eina_list_append(priv->children_list, cevt.child); 175 priv->children_list = eina_list_append(priv->children_list, cevt.child);
176 cevt.index = eina_list_count(priv->children_list); 176 cevt.index = eina_list_count(priv->children_list);
177 177
@@ -497,7 +497,7 @@ _eio_main_children_load_cb(void *data, Eio_File *handler EINA_UNUSED, const Eina
497 Eio_Model_Data *priv = data; 497 Eio_Model_Data *priv = data;
498 EINA_SAFETY_ON_NULL_RETURN(priv); 498 EINA_SAFETY_ON_NULL_RETURN(priv);
499 499
500 child = efl_add_ref(MY_CLASS, priv->obj, eio_model_path_set(efl_self, info->path)); 500 child = efl_add_ref(MY_CLASS, priv->obj, eio_model_path_set(efl_added, info->path));
501 eina_spinlock_take(&priv->filter_lock); 501 eina_spinlock_take(&priv->filter_lock);
502 if (priv->filter_cb) 502 if (priv->filter_cb)
503 eio_model_children_filter_set(child, priv->filter_cb, priv->filter_userdata); 503 eio_model_children_filter_set(child, priv->filter_cb, priv->filter_userdata);
@@ -704,7 +704,7 @@ _eio_model_efl_object_parent_get(Eo *obj , Eio_Model_Data *priv)
704 char *path = ecore_file_dir_get(priv->path); 704 char *path = ecore_file_dir_get(priv->path);
705 if (path != NULL && strcmp(priv->path, "/") != 0) 705 if (path != NULL && strcmp(priv->path, "/") != 0)
706 { 706 {
707 model = efl_add(MY_CLASS, NULL, eio_model_path_set(efl_self, path)); 707 model = efl_add(MY_CLASS, NULL, eio_model_path_set(efl_added, path));
708 } 708 }
709 else 709 else
710 model = NULL; 710 model = NULL;