From: Matthias Clasen Date: Sat, 4 Jul 2015 04:13:13 +0000 (-0400) Subject: file chooser: Make Ctrl-L work in search mode X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~9155 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=309c845e69e0245074dfa7acccffa73a1d68c6bc;p=gtk4.git file chooser: Make Ctrl-L work in search mode There is no real reason to not allow this. The transition is not quite as smooth as it should be, currently, but at least it works. --- diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 19ae2cf82a..e7bec0d6ca 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2419,10 +2419,8 @@ location_toggle_popup_handler (GtkFileChooserWidget *impl) { GtkFileChooserWidgetPrivate *priv = impl->priv; - if (priv->operation_mode == OPERATION_MODE_SEARCH) - return; - - if (priv->operation_mode == OPERATION_MODE_RECENT && + if ((priv->operation_mode == OPERATION_MODE_RECENT || + priv->operation_mode == OPERATION_MODE_SEARCH) && (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN || priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)) operation_mode_set (impl, OPERATION_MODE_BROWSE);