summaryrefslogtreecommitdiff
path: root/src/lib/elm_toolbar.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-09 16:08:12 +0000
committerTom Hacohen <tom@stosb.com>2016-03-09 16:09:17 +0000
commitd1a1819813d74361b25fd5c1123f7ac76be9b84f (patch)
tree804096836acee67ac1487ecdcafe51e81505bf54 /src/lib/elm_toolbar.c
parent90e465317d10ca01ff39824e56828ee983f7ae41 (diff)
Automatic migration to the new eo_add syntax.
Diffstat (limited to 'src/lib/elm_toolbar.c')
-rw-r--r--src/lib/elm_toolbar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 1611969f7..327b22781 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -2374,7 +2374,8 @@ _item_new(Evas_Object *obj,
2374 2374
2375 ELM_TOOLBAR_DATA_GET(obj, sd); 2375 ELM_TOOLBAR_DATA_GET(obj, sd);
2376 2376
2377 Eo *eo_it = eo_add(ELM_TOOLBAR_ITEM_CLASS, obj); 2377 Eo *eo_it = NULL;
2378 eo_add(&eo_it, ELM_TOOLBAR_ITEM_CLASS, obj);
2378 2379
2379 if (!eo_it) return NULL; 2380 if (!eo_it) return NULL;
2380 2381
@@ -2989,7 +2990,8 @@ EAPI Evas_Object *
2989elm_toolbar_add(Evas_Object *parent) 2990elm_toolbar_add(Evas_Object *parent)
2990{ 2991{
2991 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 2992 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
2992 Evas_Object *obj = eo_add(MY_CLASS, parent); 2993 Evas_Object *obj = NULL;
2994 eo_add(&obj, MY_CLASS, parent);
2993 return obj; 2995 return obj;
2994} 2996}
2995 2997