]> Pileus Git - ~andy/gtk/commitdiff
show the 'New Folder' button in SAVE mode again.
authorJonathan Blandford <jrb@gnome.org>
Thu, 4 Mar 2004 21:29:51 +0000 (21:29 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Thu, 4 Mar 2004 21:29:51 +0000 (21:29 +0000)
Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>

        * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
        Folder' button in SAVE mode again.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfilechooserdefault.c

index 7aa55df7950ad4650514c8ea14f965ca747e6efc..57a4b73c2c323fcabacdb4e5a46cb10029738fe5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
+
+       * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
+       Folder' button in SAVE mode again.
+
 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkiconfactory.c (copy_cache): Increment the reference
index 7aa55df7950ad4650514c8ea14f965ca747e6efc..57a4b73c2c323fcabacdb4e5a46cb10029738fe5 100644 (file)
@@ -1,3 +1,8 @@
+Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
+
+       * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
+       Folder' button in SAVE mode again.
+
 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkiconfactory.c (copy_cache): Increment the reference
index 7aa55df7950ad4650514c8ea14f965ca747e6efc..57a4b73c2c323fcabacdb4e5a46cb10029738fe5 100644 (file)
@@ -1,3 +1,8 @@
+Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
+
+       * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
+       Folder' button in SAVE mode again.
+
 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkiconfactory.c (copy_cache): Increment the reference
index 7aa55df7950ad4650514c8ea14f965ca747e6efc..57a4b73c2c323fcabacdb4e5a46cb10029738fe5 100644 (file)
@@ -1,3 +1,8 @@
+Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
+
+       * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
+       Folder' button in SAVE mode again.
+
 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkiconfactory.c (copy_cache): Increment the reference
index 7aa55df7950ad4650514c8ea14f965ca747e6efc..57a4b73c2c323fcabacdb4e5a46cb10029738fe5 100644 (file)
@@ -1,3 +1,8 @@
+Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
+
+       * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
+       Folder' button in SAVE mode again.
+
 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkiconfactory.c (copy_cache): Increment the reference
index 9619ce07b5b6dfa4ebcb408ddb518ee1e2411f22..19147dc36175a173fe636ef88576fb4d29965ab8 100644 (file)
@@ -2326,17 +2326,20 @@ update_appearance (GtkFileChooserDefault *impl)
   if (impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER ||
       impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
     {
-      gtk_widget_show (impl->browse_new_folder_button);
       gtk_widget_hide (impl->browse_files_swin);
       gtk_widget_show (impl->browse_directories_swin);
     }
   else
     {
-      gtk_widget_hide (impl->browse_new_folder_button);
       gtk_widget_hide (impl->browse_directories_swin);
       gtk_widget_show (impl->browse_files_swin);
     }
 
+  if (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN)
+    gtk_widget_hide (impl->browse_new_folder_button);
+  else
+    gtk_widget_show (impl->browse_new_folder_button);
+
   if (impl->extra_widget)
     {
       GtkWidget *align;