From 84383a46c42eedb6c9f67be0a3a33c1811a51d4f Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Tue, 7 Nov 2017 10:52:37 +0100 Subject: [PATCH] Remove tracking of "finalized" during construction It is a bit off-topic for this tutorial --- c-eo-intro/src/eo_intro_main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/c-eo-intro/src/eo_intro_main.c b/c-eo-intro/src/eo_intro_main.c index 5e7464a3..55fef857 100644 --- a/c-eo-intro/src/eo_intro_main.c +++ b/c-eo-intro/src/eo_intro_main.c @@ -52,15 +52,9 @@ _obj_del_cb(void *data EINA_UNUSED, const Efl_Event *event) static void _obj_create() { - Eina_Bool finalized; - // First create a root element _root = efl_add(EFL_MODEL_ITEM_CLASS, NULL, - efl_name_set(efl_added, "Root"), - finalized = efl_finalized_get(efl_added)); - printf("Was the root final during construction? %d\n", finalized); - finalized = efl_finalized_get(_root); - printf("Is the root final after construction? %d\n", finalized); + efl_name_set(efl_added, "Root")); // Add a weak reference so we can keep track of its state efl_wref_add(_root, &_root_ref); // Register a callback for DELETION events