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
This commit is contained in:
@ -780,6 +780,8 @@ shell_app_system_subsearch (ShellAppSystem *system,
|
|||||||
GSList *substring_results = NULL;
|
GSList *substring_results = NULL;
|
||||||
GSList *normalized_terms = normalize_terms (terms);
|
GSList *normalized_terms = normalize_terms (terms);
|
||||||
|
|
||||||
|
previous_results = g_slist_reverse (previous_results);
|
||||||
|
|
||||||
for (iter = previous_results; iter; iter = iter->next)
|
for (iter = previous_results; iter; iter = iter->next)
|
||||||
{
|
{
|
||||||
ShellApp *app = iter->data;
|
ShellApp *app = iter->data;
|
||||||
|
Reference in New Issue
Block a user