[gtk+/filechooser-recent-folders-2-24] Hide the Create Folder button in recent-files mode when the pathbar is on



commit d4b30f53d93bd84c4f7291b4c7dd08a414415730
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jul 1 14:54:11 2011 -0500

    Hide the Create Folder button in recent-files mode when the pathbar is on
    
    The create-folder machinery doesn't handle that case yet; we may enable it later
    once we figure out the implications for the GUI.
    
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 gtk/gtkfilechooserdefault.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index f0e3934..2d0e5ad 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -4872,7 +4872,9 @@ path_bar_set_mode (GtkFileChooserDefault *impl, PathBarMode mode)
 
   if (path_bar_visible)
     {
-      if (impl->create_folders && impl->action != GTK_FILE_CHOOSER_ACTION_OPEN)
+      if (impl->create_folders
+	  && impl->action != GTK_FILE_CHOOSER_ACTION_OPEN
+	  && impl->operation_mode != OPERATION_MODE_RECENT)
 	create_folder_visible = TRUE;
     }
 



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