diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-01-18 17:21:14 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-01-18 17:35:22 -0500 |
commit | a8cb7352c5f6fa046d5ed434756c144faf62562a (patch) | |
tree | 9bb26d9c5f9e23de12616e6ebea6f0180f24cb29 | |
parent | 8133e7e624f63afb3a99de67590d874b6b57ba65 (diff) | |
download | gtk+-a8cb7352c5f6fa046d5ed434756c144faf62562a.tar.gz |
file chooser: Make Ctrl-L work in recent
Just switch to browse mode when we see Ctrl-L in recent mode.
https://bugzilla.gnome.org/show_bug.cgi?id=660450
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 1681e08492..204a877dae 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2171,10 +2171,14 @@ location_toggle_popup_handler (GtkFileChooserWidget *impl) * browse_header_box container, so there's no point in switching * to it. */ - if (priv->operation_mode == OPERATION_MODE_SEARCH || - priv->operation_mode == OPERATION_MODE_RECENT) + if (priv->operation_mode == OPERATION_MODE_SEARCH) return; + if (priv->operation_mode == OPERATION_MODE_RECENT && + (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN || + priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)) + operation_mode_set (impl, OPERATION_MODE_BROWSE); + /* If the file entry is not visible, show it. * If it is visible, turn it off only if it is focused. Otherwise, switch to the entry. */ |