[neon/backports-focal/malcontent/Neon/release] libmalcontent-ui: libmalcontent-ui: Sort apps on the visible name
Will Thompson
null at kde.org
Mon Sep 27 16:07:41 BST 2021
Git commit fc047e6e671b4002f599fa26eacc35ee217cebf2 by Will Thompson.
Committed on 25/02/2021 at 14:12.
Pushed by jriddell into branch 'Neon/release'.
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
M +2 -2 libmalcontent-ui/restrict-applications-selector.c
https://invent.kde.org/neon/backports-focal/malcontent/commit/fc047e6e671b4002f599fa26eacc35ee217cebf2
diff --git a/libmalcontent-ui/restrict-applications-selector.c b/libmalcontent-ui/restrict-applications-selector.c
index 3cafa9e..088abf8 100644
--- a/libmalcontent-ui/restrict-applications-selector.c
+++ b/libmalcontent-ui/restrict-applications-selector.c
@@ -374,8 +374,8 @@ compare_app_info_cb (gconstpointer a,
GAppInfo *app_a = (GAppInfo*) a;
GAppInfo *app_b = (GAppInfo*) b;
- return g_utf8_collate (g_app_info_get_display_name (app_a),
- g_app_info_get_display_name (app_b));
+ return g_utf8_collate (g_app_info_get_name (app_a),
+ g_app_info_get_name (app_b));
}
static gint
More information about the Neon-commits
mailing list