summaryrefslogtreecommitdiff
path: root/gtk+/gtk+-2.4.13/my-documents.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gtk+/gtk+-2.4.13/my-documents.patch')
-rw-r--r--gtk+/gtk+-2.4.13/my-documents.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk+/gtk+-2.4.13/my-documents.patch b/gtk+/gtk+-2.4.13/my-documents.patch
index e69de29bb2..18710406aa 100644
--- a/gtk+/gtk+-2.4.13/my-documents.patch
+++ b/gtk+/gtk+-2.4.13/my-documents.patch
@@ -0,0 +1,19 @@
+--- gtk+-2.4.4/gtk/gtkfilechooserdefault.c.old Sat Aug 14 00:23:16 2004
++++ gtk+-2.4.4/gtk/gtkfilechooserdefault.c Sat Aug 14 00:26:11 2004
+@@ -1061,12 +1061,14 @@
+ static void
+ shortcuts_append_home (GtkFileChooserDefault *impl)
+ {
+- const char *home;
++ const char *home, *docs;
+ GtkFilePath *home_path;
+ GError *error;
+
+ home = g_get_home_dir ();
+- home_path = gtk_file_system_filename_to_path (impl->file_system, home);
++ docs = g_strdup_printf ("%s/My Documents", home);
++ home_path = gtk_file_system_filename_to_path (impl->file_system, docs);
++ g_free (docs);
+
+ error = NULL;
+ impl->has_home = shortcuts_insert_path (impl, -1, FALSE, NULL, home_path, _("Home"), FALSE, &error);