set xkb dialog as changed after adding a new layout

ref T2271
This commit is contained in:
Mike Blumenkrantz 2015-04-09 15:15:04 -04:00
parent 4207c1240e
commit 5992134020
1 changed files with 4 additions and 1 deletions

View File

@ -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