[gthumb/gthumb-2-10] Make sure photo importer path is in URI form - bug 577042
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb/gthumb-2-10] Make sure photo importer path is in URI form - bug 577042
- Date: Fri, 1 May 2009 09:53:41 -0400 (EDT)
commit 4377538ebb74063b8f38a3e7379cdb6d09b4e508
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 f1ff469..53a7ab2 100644
--- a/src/dlg-photo-importer.c
+++ b/src/dlg-photo-importer.c
@@ -1954,6 +1954,7 @@ dlg_photo_importer (GthBrowser *browser)
GdkPixbuf *mute_pixbuf;
char *default_path;
char *default_film_name;
+ char *default_uri;
data = g_new0 (DialogData, 1);
data->browser = browser;
@@ -2053,10 +2054,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);
default_film_name = eel_gconf_get_path (PREF_PHOTO_IMPORT_FILM, "");
_gtk_entry_set_filename_text (GTK_ENTRY (data->film_entry), default_film_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]