summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2011-09-13 15:23:33 -0500
committerFederico Mena Quintero <federico@gnome.org>2011-09-13 15:23:33 -0500
commit5734e2222ef3a97c9d522c6d7d1e24257a66f83c (patch)
tree5fb2ffb1208664995827a2cde9a7bc98fb86615c
parentfbe5f617b7b669b7bfcfe26f7b57beb1b804a4ac (diff)
downloadgtk+-bgo593793-filechooser-recent-folders.tar.gz
bgo#658600 - Don't try to focus the location entry in Recent-files modebgo593793-filechooser-recent-folders
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 <federico@gnome.org>
-rw-r--r--gtk/gtkfilechooserdefault.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index f3aeb6291f..b6855d34ac 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -8861,7 +8861,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;