[gnome-commander/get_rid_of_xml] Fixes format string for favorite apps



commit 7d1bf71e61bef8b85c6e1db1d83c1544201bc208
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Mon Nov 19 21:16:21 2018 +0100

    Fixes format string for favorite apps

 data/org.gnome.gnome-commander.gschema.xml | 2 +-
 src/gnome-cmd-data.cc                      | 2 +-
 src/gnome-cmd-data.h                       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/org.gnome.gnome-commander.gschema.xml b/data/org.gnome.gnome-commander.gschema.xml
index 267967b3..4dc1ddb4 100644
--- a/data/org.gnome.gnome-commander.gschema.xml
+++ b/data/org.gnome.gnome-commander.gschema.xml
@@ -458,7 +458,7 @@
           The entries in this list represent the devices configured by the user.
       </description>
     </key>
-    <key name="favorite-apps" type="a(ssssybbb)">
+    <key name="favorite-apps" type="a(ssssubbb)">
       <default>[]</default>
       <summary>List of favorite apps</summary>
       <description>
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 27772ac1..5158252b 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2396,7 +2396,7 @@ void GnomeCmdData::load_fav_apps_from_gsettings()
        while ((favApp = g_variant_iter_next_value (&iter)) != NULL)
     {
         gchar *name, *command, *iconPath, *pattern;
-        gint target;
+        guint target;
         gboolean handlesUris, handlesMutiple, requiresTerminal;
 
                g_assert (g_variant_is_of_type (favApp, G_VARIANT_TYPE 
(GCMD_SETTINGS_FAV_APPS_FORMAT_STRING)));
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 90be93e1..8614481b 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -121,7 +121,7 @@ GcmdSettings *gcmd_settings_new (void);
 #define GCMD_SETTINGS_DEVICES                         "devices"
 #define GCMD_SETTINGS_DEVICES_FORMAT_STRING           "(ssss)"
 #define GCMD_SETTINGS_FAV_APPS                        "favorite-apps"
-#define GCMD_SETTINGS_FAV_APPS_FORMAT_STRING          "(ssssybbb)"
+#define GCMD_SETTINGS_FAV_APPS_FORMAT_STRING          "(ssssubbb)"
 
 #define GCMD_PREF_FILTER                              "org.gnome.gnome-commander.preferences.filter"
 #define GCMD_SETTINGS_FILTER_HIDE_UNKNOWN             "hide-unknown"


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