[gnome-builder/wip/chergert/merge-shortcuts] app: update search paths for keybindings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/merge-shortcuts] app: update search paths for keybindings
- Date: Tue, 23 May 2017 23:26:04 +0000 (UTC)
commit 9576b3218fb14d1acde12a9507f5d567097f26a7
Author: Christian Hergert <chergert redhat com>
Date: Tue May 23 16:25:53 2017 -0700
app: update search paths for keybindings
libide/application/ide-application.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libide/application/ide-application.c b/libide/application/ide-application.c
index 8bfd6d2..21b9151 100644
--- a/libide/application/ide-application.c
+++ b/libide/application/ide-application.c
@@ -166,13 +166,14 @@ ide_application_register_keybindings (IdeApplication *self)
* to be writiable by the user and should also contain any user installed
* keybindings.
*/
- user_dir = g_build_filename (g_get_user_data_dir (),
- ide_get_program_name (),
- "keybindings",
- NULL);
+ user_dir = g_build_filename (g_get_user_data_dir (), PACKAGE, "keybindings", NULL);
self->shortcut_manager = g_object_ref (ide_shortcut_manager_get_default ());
ide_shortcut_manager_set_user_dir (self->shortcut_manager, user_dir);
+ ide_shortcut_manager_prepend_search_path (self->shortcut_manager,
+ "resource:///org/gnome/builder/keybindings");
+ ide_shortcut_manager_prepend_search_path (self->shortcut_manager,
+ PACKAGE_DATADIR G_DIR_SEPARATOR_S PACKAGE G_DIR_SEPARATOR_S
"keybindings");
ide_shortcut_manager_prepend_search_path (self->shortcut_manager, user_dir);
if (!g_initable_init (G_INITABLE (self->shortcut_manager), NULL, &error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]