Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
pureos-store
Commits
5f32176a
Commit
5f32176a
authored
Sep 03, 2013
by
Richard Hughes
Browse files
Return the subcategories sorted by name
When we have better ratings data we can use that instead in the UI.
parent
e50f69f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gs-plugin-loader.c
View file @
5f32176a
...
...
@@ -66,6 +66,16 @@ gs_plugin_loader_error_quark (void)
return
quark
;
}
/**
* gs_plugin_loader_app_sort_cb:
**/
static
gint
gs_plugin_loader_app_sort_cb
(
gconstpointer
a
,
gconstpointer
b
)
{
return
g_strcmp0
(
gs_app_get_name
(
GS_APP
(
a
)),
gs_app_get_name
(
GS_APP
(
b
)));
}
/**
* gs_plugin_loader_dedupe:
*/
...
...
@@ -1219,6 +1229,9 @@ cd_plugin_loader_get_category_apps_thread_cb (GSimpleAsyncResult *res,
goto
out
;
}
/* sort, just in case the UI doesn't do this */
state
->
list
=
g_list_sort
(
state
->
list
,
gs_plugin_loader_app_sort_cb
);
/* success */
state
->
ret
=
TRUE
;
g_object_unref
(
state
->
category
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment