[libdazzle] shortcuts: tweak resource path for shortcuts



commit a65cff9e906911b5b2cd3bf295183bfc0d2f696b
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 13 02:08:34 2017 -0700

    shortcuts: tweak resource path for shortcuts
    
    "shortcuts" is easier to remember and also resource paths for the shortcut
    manager need to be prefixed with resources://.

 src/app/dzl-application.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app/dzl-application.c b/src/app/dzl-application.c
index 80190bc..b1d73be 100644
--- a/src/app/dzl-application.c
+++ b/src/app/dzl-application.c
@@ -105,7 +105,7 @@ dzl_application_real_add_resource_path (DzlApplication *self,
    * resources. We always append so that the application resource dir is
    * loaded before any plugin paths.
    */
-  keythemes_path = g_build_filename (resource_path, "keythemes", NULL);
+  keythemes_path = g_strjoin (NULL, "resources://", resource_path, "/shortcuts", NULL);
   dzl_shortcut_manager_append_search_path (priv->shortcut_manager, keythemes_path);
 }
 
@@ -132,7 +132,7 @@ dzl_application_real_remove_resource_path (DzlApplication *self,
     dzl_menu_manager_remove (priv->menu_manager, merge_id);
 
   /* Remove keythemes path from the shortcuts manager */
-  keythemes_path = g_build_filename (resource_path, "keythemes", NULL);
+  keythemes_path = g_strjoin (NULL, "resources://", resource_path, "/shortcuts", NULL);
   dzl_shortcut_manager_remove_search_path (priv->shortcut_manager, keythemes_path);
 }
 


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