[gnome-builder/wip/gtk4-port: 924/1774] libide/gui: fix path to custom keybindings.json




commit 74a23a049514931d3318f899fc2b06e63503063f
Author: Christian Hergert <chergert redhat com>
Date:   Sun May 8 13:38:22 2022 -0700

    libide/gui: fix path to custom keybindings.json
    
    We are putting this in gtk/keybindings.json since it is specific to GTK
    widgetry I guess. Maybe we want to do the same with style.css too, who
    knows.

 src/libide/gui/ide-shortcut-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-shortcut-manager.c b/src/libide/gui/ide-shortcut-manager.c
index d29fc94f3..f2c54a9c1 100644
--- a/src/libide/gui/ide-shortcut-manager.c
+++ b/src/libide/gui/ide-shortcut-manager.c
@@ -217,7 +217,7 @@ ide_shortcut_manager_add_resources (const char *resource_path)
 
   g_return_if_fail (resource_path != NULL);
 
-  keybindings_json_path = g_build_filename (resource_path, "keybindings.json", NULL);
+  keybindings_json_path = g_build_filename (resource_path, "gtk", "keybindings.json", NULL);
 
   if (g_str_has_prefix (resource_path, "resource://"))
     keybindings_json = g_file_new_for_uri (keybindings_json_path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]