[gtk+] filechooser: Only do search_start_query() while we are in search mode
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooser: Only do search_start_query() while we are in search mode
- Date: Tue, 3 Mar 2015 16:58:02 +0000 (UTC)
commit 5751d4f66e6a95e46df11a603a9a770281ee7e9b
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 3 17:43:14 2015 +0100
filechooser: Only do search_start_query() while we are in search mode
This signal can be emitted by GtkSearchEntry after search has been
cancelled, and other operation mode is set. It doesn't make sense to
populate the search model in that state anymore, so just avoid doing it.
https://bugzilla.gnome.org/show_bug.cgi?id=745479
gtk/gtkfilechooserwidget.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 8789f3f..d1dcc84 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -6304,6 +6304,9 @@ search_entry_activate_cb (GtkFileChooserWidget *impl)
GtkFileChooserWidgetPrivate *priv = impl->priv;
const char *text;
+ if (priv->operation_mode != OPERATION_MODE_SEARCH)
+ return;
+
text = gtk_entry_get_text (GTK_ENTRY (priv->search_entry));
/* reset any existing query object */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]