[gtk+/bgo593793-filechooser-recent-folders-master] bgo#658600 - Don't try to focus the location entry in Recent-files mode



commit c132b6cfc741d886ecd7baf190d1c03b05a0fae4
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Sep 13 15:23:33 2011 -0500

    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 <federico gnome org>

 gtk/gtkfilechooserdefault.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index d7c1ebf..478ab27 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]