summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-23 20:18:18 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:21 -0700
commit901eeb94e31036aac7588987de4746e6646efb6f (patch)
treebadcc1264a60decf58220dd36f3615540a9f9004 /src/lib/eio/eio_model.c
parentb59911d5afca55f236936f5c635c2f35a9be6839 (diff)
eio: enforce eio model to have a parent that provide main loop access.
Diffstat (limited to 'src/lib/eio/eio_model.c')
-rw-r--r--src/lib/eio/eio_model.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index 7275443..b60d19b 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -939,6 +939,11 @@ static Efl_Object *
939_eio_model_efl_object_finalize(Eo *obj, Eio_Model_Data *pd) 939_eio_model_efl_object_finalize(Eo *obj, Eio_Model_Data *pd)
940{ 940{
941 if (!pd->path) return NULL; 941 if (!pd->path) return NULL;
942 if (!efl_provider_find(obj, EFL_LOOP_CLASS))
943 {
944 ERR("Eio.Model require a parent that provide access to the main loop.");
945 return NULL;
946 }
942 947
943 // If we have no info at all, let's check this path first 948 // If we have no info at all, let's check this path first
944 if (!pd->info) _eio_build_st(obj, pd); 949 if (!pd->info) _eio_build_st(obj, pd);