[gtk/BUG_filechooser_recent_location] GtkFileChooser: fix entering location from recent mode




commit 312e1dae12c8c6f67133491dd78a117814881eca
Author: Nelson Benítez León <nbenitezl gmail com>
Date:   Tue Oct 20 09:55:18 2020 -0400

    GtkFileChooser: fix entering location from recent mode
    
    Fix regression from commit c99935a540
    
    We need the g_signal_emit_by_name bit from reset_location_timeout()
    for OPEN_FOLDER in recent files to sensitivize the Open button.
    
    Fixes issue #3277

 gtk/gtkfilechooserwidget.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index d75a3f7857..91e8c8f098 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2605,7 +2605,9 @@ location_entry_changed_cb (GtkEditable          *editable,
         switch_to_home_dir (impl);
     }
 
-  if (priv->action != GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
+  if (priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
+    g_signal_emit_by_name (impl, "selection-changed", 0);/* Issue #3277 */
+  else
     reset_location_timeout (impl);
 }
 


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