[gtk+/filechooser-recent-folders-2-24] Return the recent-folder plus filename in Save mode from get_files()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/filechooser-recent-folders-2-24] Return the recent-folder plus filename in Save mode from get_files()
- Date: Tue, 12 Jul 2011 23:43:48 +0000 (UTC)
commit 673de40aeddfadd055964da5573fa4142ecc7cf1
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Jun 30 14:38:27 2011 -0500
Return the recent-folder plus filename in Save mode from get_files()
Since the GtkFileChooserEntry already gets the recent-folder set upon it when a recent-folder
is selected, it already can give us the correct fully-formed path.
Signed-off-by: Federico Mena Quintero <federico gnome org>
gtk/gtkfilechooserdefault.c | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 1fa1d03..bdfb70f 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -7258,15 +7258,23 @@ gtk_file_chooser_default_get_files (GtkFileChooser *chooser)
GtkWidget *current_focus;
gboolean file_list_seen;
+ info.impl = impl;
+ info.result = NULL;
+ info.file_from_entry = NULL;
+
if (impl->operation_mode == OPERATION_MODE_SEARCH)
return search_get_selected_files (impl);
if (impl->operation_mode == OPERATION_MODE_RECENT)
- return recent_get_selected_files (impl);
-
- info.impl = impl;
- info.result = NULL;
- info.file_from_entry = NULL;
+ {
+ if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE)
+ {
+ file_list_seen = TRUE;
+ goto file_entry;
+ }
+ else
+ return recent_get_selected_files (impl);
+ }
toplevel = get_toplevel (GTK_WIDGET (impl));
if (toplevel)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]