[gnome-shell] shell-app-system: Ensure that we correctly order subsearches
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shell-app-system: Ensure that we correctly order subsearches
- Date: Sat, 16 Feb 2013 18:33:56 +0000 (UTC)
commit 754df5ebe2bb912176b54c7ca7e2e48c9093d104
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Feb 15 23:17:44 2013 -0500
shell-app-system: Ensure that we correctly order subsearches
As we use g_slist_prepend for efficiency when building the list
of results before ordering it, we need to make sure we traverse
the list of previous results backwards so that it's built in
the same order.
https://bugzilla.gnome.org/show_bug.cgi?id=693936
src/shell-app-system.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index 61e86f5..66f94f8 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -780,6 +780,8 @@ shell_app_system_subsearch (ShellAppSystem *system,
GSList *substring_results = NULL;
GSList *normalized_terms = normalize_terms (terms);
+ previous_results = g_slist_reverse (previous_results);
+
for (iter = previous_results; iter; iter = iter->next)
{
ShellApp *app = iter->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]