[gthumb] Make sure photo importer path is in URI form - bug 577042



commit 4922c0b78fc389ae1b3ec9bad83646f2d7564842
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Fri May 1 09:44:08 2009 -0400

    Make sure photo importer path is in URI form - bug 577042
---
 src/dlg-photo-importer.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/dlg-photo-importer.c b/src/dlg-photo-importer.c
index 2004965..66f6e3e 100644
--- a/src/dlg-photo-importer.c
+++ b/src/dlg-photo-importer.c
@@ -2097,6 +2097,7 @@ dlg_photo_importer (GthBrowser *browser)
 	GtkWidget  *btn_help;
 	GdkPixbuf  *mute_pixbuf;
 	char       *default_path;
+	char       *default_uri;
 
 	data = g_new0 (DialogData, 1);
 	data->browser = browser;
@@ -2198,10 +2199,12 @@ dlg_photo_importer (GthBrowser *browser)
 	default_path = eel_gconf_get_path (PREF_PHOTO_IMPORT_DESTINATION, NULL);
 	if ((default_path == NULL) || (*default_path == 0))
 		default_path = xdg_user_dir_lookup ("PICTURES");
-	
+	default_uri = add_scheme_if_absent (default_path);
+		
 	gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (data->destination_filechooserbutton),
-					         default_path);
+					         default_uri);
 	g_free (default_path);
+	g_free (default_uri);
 
 	task_terminated (data);
 



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