summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelson Benítez León <nbenitezl@gmail.com>2020-10-20 09:55:18 -0400
committerNelson Benítez León <nbenitezl@gmail.com>2020-10-20 09:55:18 -0400
commit312e1dae12c8c6f67133491dd78a117814881eca (patch)
tree3438855cc1c845ab46abd51067bcfdc2636a0635
parentfab2558747ace63ee656257f7001f81b3c6b9b49 (diff)
downloadgtk+-312e1dae12c8c6f67133491dd78a117814881eca.tar.gz
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
-rw-r--r--gtk/gtkfilechooserwidget.c4
1 files changed, 3 insertions, 1 deletions
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);
}