summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-09-19 14:32:20 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-10-04 09:37:14 -0400
commit30b07c6558034df78ee8ef4343e3da010b168d22 (patch)
treea4232ce87ca4159b5bb3823af81b53336c1d029d
parent3ef09d6cc88ad154d78d12e2f77720a90afdff8f (diff)
set gadget added flag any time a gadget is created or wizarded
ensure that desktop gadget editor doesn't exit when attempting to add subsequent gadgets
-rw-r--r--src/bin/e_gadget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index 8093df4e4..bd99befdc 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -294,6 +294,7 @@ _gadget_object_create(E_Gadget_Config *zgc)
294 if (t->wizard) 294 if (t->wizard)
295 { 295 {
296 t->wizard(_gadget_wizard_end, zgc); 296 t->wizard(_gadget_wizard_end, zgc);
297 added = 1;
297 return EINA_TRUE; 298 return EINA_TRUE;
298 } 299 }
299 } 300 }
@@ -303,6 +304,7 @@ _gadget_object_create(E_Gadget_Config *zgc)
303 */ 304 */
304 g = t->cb(zgc->site->layout, &zgc->id, zgc->site->orient); 305 g = t->cb(zgc->site->layout, &zgc->id, zgc->site->orient);
305 EINA_SAFETY_ON_NULL_RETURN_VAL(g, EINA_FALSE); 306 EINA_SAFETY_ON_NULL_RETURN_VAL(g, EINA_FALSE);
307 added = 1;
306 308
307 zgc->e_obj_inherit = E_OBJECT_ALLOC(E_Object, E_GADGET_TYPE, _gadget_object_free); 309 zgc->e_obj_inherit = E_OBJECT_ALLOC(E_Object, E_GADGET_TYPE, _gadget_object_free);
308 e_object_data_set(zgc->e_obj_inherit, g); 310 e_object_data_set(zgc->e_obj_inherit, g);