discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=42056009a50174a6dd3e864c67ae91432b561b0f

commit 42056009a50174a6dd3e864c67ae91432b561b0f
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Sep 19 14:32:20 2016 -0400

    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
---
 src/bin/e_gadget.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index 45fe094..5196963 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -297,6 +297,7 @@ _gadget_object_create(E_Gadget_Config *zgc)
         if (t->wizard)
           {
              t->wizard(_gadget_wizard_end, zgc);
+             added = 1;
              return EINA_TRUE;
           }
      }
@@ -306,6 +307,7 @@ _gadget_object_create(E_Gadget_Config *zgc)
     */
    g = t->cb(zgc->site->layout, &zgc->id, zgc->site->orient);
    EINA_SAFETY_ON_NULL_RETURN_VAL(g, EINA_FALSE);
+   added = 1;
 
    zgc->e_obj_inherit = E_OBJECT_ALLOC(E_Object, E_GADGET_TYPE, 
_gadget_object_free);
    e_object_data_set(zgc->e_obj_inherit, g);

-- 


Reply via email to