[Xfce4-commits] <garcon:master> Fix ordering of menu items for non-english locales (bug #7414).

Nick Schermer noreply at xfce.org
Wed Apr 6 18:36:01 CEST 2011


Updating branch refs/heads/master
         to 0f23d47f8854fc531b1ce04fa49fc3bdcb482572 (commit)
       from 5e0525c346064f88159535f64b8e92caa77f97fd (commit)

commit 0f23d47f8854fc531b1ce04fa49fc3bdcb482572
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date:   Wed Apr 6 18:33:36 2011 +0200

    Fix ordering of menu items for non-english locales (bug #7414).

 garcon/garcon-menu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/garcon/garcon-menu.c b/garcon/garcon-menu.c
index ba58e67..e7c8871 100644
--- a/garcon/garcon-menu.c
+++ b/garcon/garcon-menu.c
@@ -1608,8 +1608,8 @@ static gint
 garcon_menu_compare_items (gconstpointer *a,
                            gconstpointer *b)
 {
-  return g_strcmp0 (garcon_menu_element_get_name (GARCON_MENU_ELEMENT (a)),
-                    garcon_menu_element_get_name (GARCON_MENU_ELEMENT (b)));
+  return g_utf8_collate (garcon_menu_element_get_name (GARCON_MENU_ELEMENT (a)),
+                         garcon_menu_element_get_name (GARCON_MENU_ELEMENT (b)));
 }
 
 



More information about the Xfce4-commits mailing list