summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-07-28 03:16:22 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-07-28 03:16:22 +0800
commit0ff1dd90d892f3edd2a1a95945c627bb37b4d56b (patch)
tree082da1dfbb5c075e1ee09788f87a70c10a8738f7
parentebf6af623379586516254f272b0489f599af05b6 (diff)
downloadmarcuscom-ports-0ff1dd90d892f3edd2a1a95945c627bb37b4d56b.tar
marcuscom-ports-0ff1dd90d892f3edd2a1a95945c627bb37b4d56b.tar.gz
marcuscom-ports-0ff1dd90d892f3edd2a1a95945c627bb37b4d56b.tar.bz2
marcuscom-ports-0ff1dd90d892f3edd2a1a95945c627bb37b4d56b.tar.lz
marcuscom-ports-0ff1dd90d892f3edd2a1a95945c627bb37b4d56b.tar.xz
marcuscom-ports-0ff1dd90d892f3edd2a1a95945c627bb37b4d56b.tar.zst
marcuscom-ports-0ff1dd90d892f3edd2a1a95945c627bb37b4d56b.zip
Fix the build on 4.X.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4342 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserdefault.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserdefault.c b/x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserdefault.c
new file mode 100644
index 000000000..320851660
--- /dev/null
+++ b/x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserdefault.c
@@ -0,0 +1,17 @@
+--- gtk/gtkfilechooserdefault.c.orig Wed Jul 27 15:02:39 2005
++++ gtk/gtkfilechooserdefault.c Wed Jul 27 15:02:55 2005
+@@ -1419,13 +1419,13 @@ shortcuts_append_desktop (GtkFileChooser
+ {
+ char *name;
+ GtkFilePath *path;
++ const char *home = g_get_home_dir ();
+
+ profile_start ("start", NULL);
+
+ #ifdef G_OS_WIN32
+ name = _gtk_file_system_win32_get_desktop ();
+ #else
+- const char *home = g_get_home_dir ();
+ if (home == NULL)
+ {
+ profile_end ("end - no home directory!?", NULL);