From c132b6cfc741d886ecd7baf190d1c03b05a0fae4 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 13 Sep 2011 15:23:33 -0500 Subject: [PATCH] bgo#658600 - Don't try to focus the location entry in Recent-files mode We don't ever start up in Search mode, so we don't need an extra check for that mode, yet. Signed-off-by: Federico Mena Quintero --- gtk/gtkfilechooserdefault.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index d7c1ebf229..478ab27584 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -9023,7 +9023,8 @@ gtk_file_chooser_default_initial_focus (GtkFileChooserEmbed *chooser_embed) if (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN || impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER) { - if (impl->location_mode == LOCATION_MODE_PATH_BAR) + if (impl->location_mode == LOCATION_MODE_PATH_BAR + || impl->operation_mode == OPERATION_MODE_RECENT) widget = impl->browse_files_tree_view; else widget = impl->location_entry;