forked from enlightenment/enlightenment
set xkb dialog as changed after adding a new layout
ref T2271
This commit is contained in:
parent
4207c1240e
commit
5992134020
|
@ -19,6 +19,7 @@ struct _E_Config_Dialog_Data
|
||||||
int dont_touch_my_damn_keyboard;
|
int dont_touch_my_damn_keyboard;
|
||||||
|
|
||||||
E_Dialog *dlg_add_new;
|
E_Dialog *dlg_add_new;
|
||||||
|
E_Config_Dialog *cfd;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _E_XKB_Dialog_Option
|
typedef struct _E_XKB_Dialog_Option
|
||||||
|
@ -84,7 +85,7 @@ _xkb_cfg_dialog(E_Comp *comp, const char *params __UNUSED__)
|
||||||
/* Locals */
|
/* Locals */
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
_create_data(E_Config_Dialog *cfd __UNUSED__)
|
_create_data(E_Config_Dialog *cfd)
|
||||||
{
|
{
|
||||||
E_Config_Dialog_Data *cfdata;
|
E_Config_Dialog_Data *cfdata;
|
||||||
Eina_List *l, *ll, *lll;
|
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? */
|
parse_rules(); /* XXX: handle in case nothing was found? */
|
||||||
|
|
||||||
cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
||||||
|
cfdata->cfd = cfd;
|
||||||
|
|
||||||
cfdata->cfg_layouts = NULL;
|
cfdata->cfg_layouts = NULL;
|
||||||
EINA_LIST_FOREACH(e_config->xkb.used_layouts, l, cl)
|
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;
|
cfdata->dlg_add_new = NULL;
|
||||||
e_object_unref(E_OBJECT(dlg));
|
e_object_unref(E_OBJECT(dlg));
|
||||||
|
e_config_dialog_changed_set(cfdata->cfd, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue