[gnome-initial-setup] cc-language-chooser: Add back sorting special-case of initial languages



commit 3dcb45345fb512f68ae1c0e43c995417119301c3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Nov 1 02:12:42 2013 -0400

    cc-language-chooser: Add back sorting special-case of initial languages
    
    Put them at the top...

 .../pages/language/cc-language-chooser.c           |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/cc-language-chooser.c 
b/gnome-initial-setup/pages/language/cc-language-chooser.c
index c63dcb5..26b9167 100644
--- a/gnome-initial-setup/pages/language/cc-language-chooser.c
+++ b/gnome-initial-setup/pages/language/cc-language-chooser.c
@@ -323,6 +323,12 @@ sort_languages (GtkListBoxRow *a,
         if (lb == NULL)
                 return -1;
 
+        if (la->is_extra && !lb->is_extra)
+                return 1;
+
+        if (!la->is_extra && lb->is_extra)
+                return -1;
+
         return strcmp (la->locale_name, lb->locale_name);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]