[gthumb] use the correct mothod to set the folder in the file chooser
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] use the correct mothod to set the folder in the file chooser
- Date: Wed, 3 Jul 2013 09:33:41 +0000 (UTC)
commit ca63b4c4fb9b706b7f86f8da88d6def6f43e66d9
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 3 11:32:21 2013 +0200
use the correct mothod to set the folder in the file chooser
extensions/contact_sheet/dlg-contact-sheet.c | 2 +-
extensions/contact_sheet/dlg-image-wall.c | 2 +-
extensions/file_manager/actions.c | 2 +-
extensions/find_duplicates/dlg-find-duplicates.c | 4 ++--
extensions/webalbums/dlg-web-exporter.c | 2 +-
gthumb/dlg-preferences.c | 4 ++--
6 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/extensions/contact_sheet/dlg-contact-sheet.c b/extensions/contact_sheet/dlg-contact-sheet.c
index 6581f55..44c037d 100644
--- a/extensions/contact_sheet/dlg-contact-sheet.c
+++ b/extensions/contact_sheet/dlg-contact-sheet.c
@@ -721,7 +721,7 @@ dlg_contact_sheet (GthBrowser *browser,
else
s_value = g_strdup (get_home_uri ());
}
- gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (GET_WIDGET
("destination_filechooserbutton")), s_value);
+ gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (GET_WIDGET ("destination_filechooserbutton")), s_value);
g_free (s_value);
s_value = _g_settings_get_uri (data->settings, PREF_CONTACT_SHEET_TEMPLATE);
diff --git a/extensions/contact_sheet/dlg-image-wall.c b/extensions/contact_sheet/dlg-image-wall.c
index 88aff40..de7c93f 100644
--- a/extensions/contact_sheet/dlg-image-wall.c
+++ b/extensions/contact_sheet/dlg-image-wall.c
@@ -260,7 +260,7 @@ dlg_image_wall (GthBrowser *browser,
else
s_value = g_strdup (get_home_uri ());
}
- gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (GET_WIDGET
("destination_filechooserbutton")), s_value);
+ gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (GET_WIDGET ("destination_filechooserbutton")), s_value);
g_free (s_value);
s_value = _g_settings_get_uri (data->settings, PREF_IMAGE_WALL_TEMPLATE);
diff --git a/extensions/file_manager/actions.c b/extensions/file_manager/actions.c
index a41151f..6516b72 100644
--- a/extensions/file_manager/actions.c
+++ b/extensions/file_manager/actions.c
@@ -928,7 +928,7 @@ copy_to_folder_dialog (GthBrowser *browser,
g_free (start_uri);
start_uri = g_strdup (get_home_uri ());
}
- gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dialog), start_uri);
+ gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (dialog), start_uri);
g_free(start_uri);
history = _g_settings_get_string_list (settings, PREF_FILE_MANAGER_COPY_HISTORY);
diff --git a/extensions/find_duplicates/dlg-find-duplicates.c
b/extensions/find_duplicates/dlg-find-duplicates.c
index e4526f0..4df5a2d 100644
--- a/extensions/find_duplicates/dlg-find-duplicates.c
+++ b/extensions/find_duplicates/dlg-find-duplicates.c
@@ -108,9 +108,9 @@ dlg_find_duplicates (GthBrowser *browser)
file_chooser = _gtk_builder_get_widget (data->builder, "location_filechooserbutton");
if (GTH_IS_FILE_SOURCE_VFS (gth_browser_get_location_source (browser)))
- gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (file_chooser),
gth_browser_get_location (browser), NULL);
+ gtk_file_chooser_set_file (GTK_FILE_CHOOSER (file_chooser), gth_browser_get_location
(browser), NULL);
else
- gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (file_chooser), get_home_uri ());
+ gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (file_chooser), get_home_uri ());
tests = gth_main_get_registered_objects_id (GTH_TYPE_TEST);
general_filter = g_settings_get_string (settings, PREF_BROWSER_GENERAL_FILTER);
diff --git a/extensions/webalbums/dlg-web-exporter.c b/extensions/webalbums/dlg-web-exporter.c
index 7aef165..650023b 100644
--- a/extensions/webalbums/dlg-web-exporter.c
+++ b/extensions/webalbums/dlg-web-exporter.c
@@ -474,7 +474,7 @@ dlg_web_exporter (GthBrowser *browser,
destination = _g_settings_get_uri (data->settings, PREF_WEBALBUMS_DESTINATION);
if (destination == NULL)
destination = g_strdup (get_home_uri ());
- gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (GET_WIDGET
("destination_filechooserbutton")), destination);
+ gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (GET_WIDGET ("destination_filechooserbutton")),
destination);
g_free (destination);
}
diff --git a/gthumb/dlg-preferences.c b/gthumb/dlg-preferences.c
index 518e9af..1bc0d00 100644
--- a/gthumb/dlg-preferences.c
+++ b/gthumb/dlg-preferences.c
@@ -137,7 +137,7 @@ set_to_current_cb (GtkWidget *widget,
gio_file = gth_file_source_to_gio_file (file_source, gth_browser_get_location
(data->browser));
uri = g_file_get_uri (gio_file);
- gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (GET_WIDGET
("startup_dir_filechooserbutton")), uri);
+ gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (GET_WIDGET ("startup_dir_filechooserbutton")),
uri);
g_free (uri);
g_object_unref (gio_file);
@@ -280,7 +280,7 @@ dlg_preferences (GthBrowser *browser)
location = g_file_new_for_uri (startup_location);
folder = gth_file_source_to_gio_file (file_source, location);
folder_uri = g_file_get_uri (folder);
- gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (GET_WIDGET
("startup_dir_filechooserbutton")), folder_uri);
+ gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (GET_WIDGET ("startup_dir_filechooserbutton")),
folder_uri);
g_free (folder_uri);
g_object_unref (folder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]