From fc047e6e671b4002f599fa26eacc35ee217cebf2 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Thu, 25 Feb 2021 14:12:20 +0000 Subject: [PATCH] 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 --- libmalcontent-ui/restrict-applications-selector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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