[glade] Output .glade files saved in Windows containing Pixbuf widgets with relative paths to image files e.



commit c120bb600075c6312d9df7049ae7d657175eeed3
Author: jmoorecec <jmoore contelec com>
Date:   Wed Apr 28 18:37:44 2021 -0500

    Output .glade files saved in Windows containing Pixbuf widgets with relative paths to image files e.g. 
ui_graphics/background.png were changed from forward-slash (/) to backslash (\) due to use of GTK macro. E.g. 
ui_graphics\background.png Then, when the Glade file was loaded in Linux, the Pixbuf widget relative path did 
not work anymore b/c backslash (\) was not understood. Forward slashes (/) are always understood, so changed 
always use forward slashes.

 gladeui/glade-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gladeui/glade-utils.c b/gladeui/glade-utils.c
index b23e297a..20eb7e23 100644
--- a/gladeui/glade-utils.c
+++ b/gladeui/glade-utils.c
@@ -2183,7 +2183,7 @@ _glade_util_file_get_relative_path (GFile *target, GFile *source)
           relative_path = g_file_get_relative_path (target, source);
 
           g_string_append (relpath, "..");
-          g_string_append_c (relpath, G_DIR_SEPARATOR);
+          g_string_append_c (relpath, '/');
 
           g_object_unref (old_target);
         }


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