[gtk/wip/baedert/for-master] filechooserwidget: Allow typing a location in recent mode
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] filechooserwidget: Allow typing a location in recent mode
- Date: Wed, 19 Feb 2020 15:28:34 +0000 (UTC)
commit 2d3b81f0425f30c7c66b072709156aaba7f0c961
Author: Timm Bäder <mail baedert org>
Date: Wed Feb 19 07:35:40 2020 +0100
filechooserwidget: Allow typing a location in recent mode
This is triggered by typing / or hitting Ctrl+L. Since we don't have a
visual indicator for this mode right now anyway, the reason for not
allowing it in recent mode cited in the comment just above the
early-exit is irrelevant.
Closes #2178
gtk/gtkfilechooserwidget.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index d61c98ea7d..2290ed717f 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2650,12 +2650,11 @@ location_switch_to_filename_entry (GtkFileChooserWidget *impl)
{
GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
- /* when in search or recent files mode, we are not showing the
+ /* when in search mode, we are not showing the
* 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;
gtk_revealer_set_reveal_child (GTK_REVEALER (priv->browse_header_revealer), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]