libmalcontent-ui: Sort apps on the visible name
Previously, we sorted apps based on their display name, but (confusingly) displayed their name. This leads to inconsistencies like Rhythmbox being sorted (in French) as "Lecteur de musique Rhythmbox" which places it between Krita and LibreOffice, but displayed as "Rhythmbox". Fixes #32
This commit is contained in:
parent
b067a84266
commit
fc047e6e67
|
@ -374,8 +374,8 @@ compare_app_info_cb (gconstpointer a,
|
||||||
GAppInfo *app_a = (GAppInfo*) a;
|
GAppInfo *app_a = (GAppInfo*) a;
|
||||||
GAppInfo *app_b = (GAppInfo*) b;
|
GAppInfo *app_b = (GAppInfo*) b;
|
||||||
|
|
||||||
return g_utf8_collate (g_app_info_get_display_name (app_a),
|
return g_utf8_collate (g_app_info_get_name (app_a),
|
||||||
g_app_info_get_display_name (app_b));
|
g_app_info_get_name (app_b));
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
|
|
Loading…
Reference in New Issue