discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5992134020ea30dd837521b5bb08b07fb9ee6f1a

commit 5992134020ea30dd837521b5bb08b07fb9ee6f1a
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Apr 9 15:15:04 2015 -0400

    set xkb dialog as changed after adding a new layout
    
    ref T2271
---
 src/modules/xkbswitch/e_mod_config.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/xkbswitch/e_mod_config.c 
b/src/modules/xkbswitch/e_mod_config.c
index 13745ce..e2c17fa 100644
--- a/src/modules/xkbswitch/e_mod_config.c
+++ b/src/modules/xkbswitch/e_mod_config.c
@@ -19,6 +19,7 @@ struct _E_Config_Dialog_Data
    int          dont_touch_my_damn_keyboard;
 
    E_Dialog    *dlg_add_new;
+   E_Config_Dialog *cfd;
 };
 
 typedef struct _E_XKB_Dialog_Option
@@ -84,7 +85,7 @@ _xkb_cfg_dialog(E_Comp *comp, const char *params __UNUSED__)
 /* Locals */
 
 static void *
-_create_data(E_Config_Dialog *cfd __UNUSED__)
+_create_data(E_Config_Dialog *cfd)
 {
    E_Config_Dialog_Data *cfdata;
    Eina_List *l, *ll, *lll;
@@ -97,6 +98,7 @@ _create_data(E_Config_Dialog *cfd __UNUSED__)
    parse_rules(); /* XXX: handle in case nothing was found? */
 
    cfdata = E_NEW(E_Config_Dialog_Data, 1);
+   cfdata->cfd = cfd;
 
    cfdata->cfg_layouts = NULL;
    EINA_LIST_FOREACH(e_config->xkb.used_layouts, l, cl)
@@ -600,6 +602,7 @@ _dlg_add_cb_ok(void *data __UNUSED__, E_Dialog *dlg)
 
    cfdata->dlg_add_new = NULL;
    e_object_unref(E_OBJECT(dlg));
+   e_config_dialog_changed_set(cfdata->cfd, 1);
 }
 
 static void

-- 


Reply via email to