diff options
author | jmoorecec <jmoore@contelec.com> | 2021-04-28 18:37:44 -0500 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2021-07-09 21:13:01 +0000 |
commit | c120bb600075c6312d9df7049ae7d657175eeed3 (patch) | |
tree | db2a18dc0ccac012b093980a717b8908dc46578f /gladeui | |
parent | eb0429d318c017b57b9e59de1d5b3f142a0f455e (diff) | |
download | glade-c120bb600075c6312d9df7049ae7d657175eeed3.tar.gz |
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.
Diffstat (limited to 'gladeui')
-rw-r--r-- | gladeui/glade-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |