[gnome-control-center] shell: Unset sort terms when search entry is programatically cleared
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Unset sort terms when search entry is programatically cleared
- Date: Tue, 2 Dec 2014 17:53:46 +0000 (UTC)
commit d93c51f228729135db73ab13a7d9e14762c2d9fa
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Dec 2 14:14:56 2014 +0100
shell: Unset sort terms when search entry is programatically cleared
Otherwise items would keep the previous search sort order when going
back to the overview.
shell/cc-window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index a20b7f6..432da32 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -604,7 +604,10 @@ search_entry_changed_cb (GtkEntry *entry,
/* if the entry text was set manually (not by the user) */
if (!g_strcmp0 (priv->filter_string, gtk_entry_get_text (entry)))
- return;
+ {
+ cc_shell_model_set_sort_terms (CC_SHELL_MODEL (priv->store), NULL);
+ return;
+ }
/* Don't re-filter for added trailing or leading spaces */
str = cc_util_normalize_casefold_and_unaccent (gtk_entry_get_text (entry));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]