* app/widgets/gimpfiledialog.c (gimp_file_dialog_new): add
	shortcut to user's DOCUMENTS dir, fixes bug #325294.

svn path=/trunk/; revision=24357
This commit is contained in:
William Skaggs
2007-12-13 21:19:44 +00:00
parent 0a7e4f0745
commit 4bab078cbe
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-12-13 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpfiledialog.c (gimp_file_dialog_new): add
shortcut to user's DOCUMENTS dir, fixes bug #325294.
2007-12-13 Sven Neumann <sven@gimp.org>
* app/base/temp-buf.c (temp_buf_demultiply): corrected formula for

View File

@ -257,6 +257,7 @@ gimp_file_dialog_new (Gimp *gimp,
const gchar *automatic;
const gchar *automatic_help_id;
const gchar *pictures;
const gchar *documents;
gboolean local_only;
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
@ -341,6 +342,12 @@ gimp_file_dialog_new (Gimp *gimp,
gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (dialog),
pictures, NULL);
documents = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
if (documents)
gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (dialog),
documents, NULL);
gimp_file_dialog_add_preview (dialog, gimp);
gimp_file_dialog_add_filters (dialog, gimp, file_procs);