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>
This commit is contained in:
Federico Mena Quintero 2011-06-30 14:38:27 -05:00
parent 3449a4891a
commit 673de40aed

View File

@ -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)