file chooser: Make Ctrl-L work in search mode
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jul 2015 04:13:13 +0000 (00:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jul 2015 04:29:27 +0000 (00:29 -0400)
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.

gtk/gtkfilechooserwidget.c

index 19ae2cf82adc637c953394a0e45f4582bb804aad..e7bec0d6cad8731a1847901c72fee2946762885b 100644 (file)
@@ -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);