summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elm_config.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index 5f754f9502..63eda20a3f 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -2297,6 +2297,23 @@ _elm_key_bindings_update(Elm_Config *cfg, Elm_Config *syscfg EINA_UNUSED)
2297} 2297}
2298 2298
2299static void 2299static void
2300_elm_key_bindings_copy_missing_bindings_of_widget(Elm_Config *cfg, Elm_Config *syscfg, const char *widget_name)
2301{
2302 Elm_Config_Bindings_Widget *wd;
2303 Eina_List *n, *nnext;
2304
2305 EINA_LIST_FOREACH_SAFE(syscfg->bindings, n, nnext, wd)
2306 {
2307 if (eina_streq(widget_name, wd->name))
2308 {
2309 syscfg->bindings = eina_list_remove_list(syscfg->bindings, n);
2310 cfg->bindings = eina_list_append(cfg->bindings, wd);
2311 printf("Upgraded keybindings for %s!\n", wd->name);
2312 }
2313 }
2314}
2315
2316static void
2300_elm_key_bindings_copy_missing_bindings(Elm_Config *cfg, Elm_Config *syscfg) 2317_elm_key_bindings_copy_missing_bindings(Elm_Config *cfg, Elm_Config *syscfg)
2301{ 2318{
2302 Eina_Hash *safed_bindings = eina_hash_string_superfast_new(NULL); 2319 Eina_Hash *safed_bindings = eina_hash_string_superfast_new(NULL);