[gtk+/gtk-3-0] bgo#642929 - Don't infinite-loop in GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER



commit 219e82c9e7089fe45ec5f3f117651d5b7fcd577e
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Mon May 23 15:02:00 2011 -0500

    bgo#642929 - Don't infinite-loop in GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
    
    If the user pressed Enter to confirm the file chooser while the filename entry
    was empty, then gtk_file_chooser_default_should_respond() would go back and forth
    between the cases for handling the filename entry and the file list.

 gtk/gtkfilechooserdefault.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 9c6c717..0189838 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -8593,7 +8593,8 @@ gtk_file_chooser_default_should_respond (GtkFileChooserEmbed *chooser_embed)
 
       if (is_empty)
         {
-          if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE)
+          if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE
+	      || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
             return FALSE;
 
           goto file_list;



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