[gtk+] file chooser: Make keynav in save mode smoother



commit 707459fe4ea284386f31cd8e90ed4551d34c142a
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 23 01:04:15 2015 -0400

    file chooser: Make keynav in save mode smoother
    
    When using the location popup to complete to a directory name
    (with a trailing /), we should not punish the user by making the
    Open button insensitive and preventing the Enter key from doing
    the expected thing (switching to that directory).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752708

 gtk/gtkfilechooserwidget.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 40cdd28..c0d8e97 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -5853,12 +5853,6 @@ gtk_file_chooser_widget_get_files (GtkFileChooser *chooser)
       if (!is_well_formed)
         return NULL;
 
-      if (is_file_part_empty && priv->action == GTK_FILE_CHOOSER_ACTION_SAVE)
-        {
-          g_object_unref (info.file_from_entry);
-          return NULL;
-        }
-
       if (info.file_from_entry)
         info.result = g_slist_prepend (info.result, info.file_from_entry);
       else if (!file_list_seen)


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