region: Disregard being an initial region for sorting

Otherwise all the initial regions would show up grouped at the end of
the list when showing all entries.
This commit is contained in:
Rui Matos 2013-02-05 17:53:09 +01:00
parent acbe609c94
commit 1dd14e7b29

View file

@ -188,8 +188,6 @@ sort_regions (gconstpointer a,
{
const gchar *la;
const gchar *lb;
gboolean iea;
gboolean ieb;
if (g_object_get_data (G_OBJECT (a), "locale-id") == NULL) {
return 1;
@ -201,14 +199,7 @@ sort_regions (gconstpointer a,
la = g_object_get_data (G_OBJECT (a), "locale-name");
lb = g_object_get_data (G_OBJECT (b), "locale-name");
iea = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (a), "is-extra"));
ieb = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (b), "is-extra"));
if (iea != ieb) {
return ieb - iea;
} else {
return strcmp (la, lb);
}
return g_strcmp0 (la, lb);
}
static GtkWidget *