[gimp] app: use gimp_config_path_expand() in gimp_prop_profile_combo_box_new()



commit d4d03d186d2773a01b9d6acc0dd062f65d9034ec
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 8 23:12:29 2016 +0200

    app: use gimp_config_path_expand() in gimp_prop_profile_combo_box_new()

 app/widgets/gimppropwidgets.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimppropwidgets.c b/app/widgets/gimppropwidgets.c
index 3392860..1a7710f 100644
--- a/app/widgets/gimppropwidgets.c
+++ b/app/widgets/gimppropwidgets.c
@@ -1629,9 +1629,15 @@ gimp_prop_profile_combo_box_new (GObject      *config,
 
   if (G_IS_PARAM_SPEC_STRING (param_spec))
     {
+      gchar *value;
       gchar *path;
 
-      g_object_get (config, property_name, &path, NULL);
+      g_object_get (config,
+                    property_name, &value,
+                    NULL);
+
+      path = value ? gimp_config_path_expand (value, TRUE, NULL) : NULL;
+      g_free (value);
 
       if (path)
         {
@@ -1733,12 +1739,16 @@ gimp_prop_profile_combo_notify (GObject                  *config,
 
   if (G_IS_PARAM_SPEC_STRING (param_spec))
     {
+      gchar *value;
       gchar *path;
 
       g_object_get (config,
-                    param_spec->name, &path,
+                    param_spec->name, &value,
                     NULL);
 
+      path = value ? gimp_config_path_expand (value, TRUE, NULL) : NULL;
+      g_free (value);
+
       if (path)
         {
           file = g_file_new_for_path (path);


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