diff options
author | Laurent Contzen <lcontzen@gmail.com> | 2012-06-19 20:44:17 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-19 20:51:19 +0800 |
commit | 86bbf6fce421a5ded5065c39f28849045392a402 (patch) | |
tree | 9ae5618a79724d710114ab8fbf6280ca40ea5d6c | |
parent | b7d71d0633ae264acb5b3070d0f318b356f6cabc (diff) | |
download | gsoc2013-empathy-86bbf6fce421a5ded5065c39f28849045392a402.tar gsoc2013-empathy-86bbf6fce421a5ded5065c39f28849045392a402.tar.gz gsoc2013-empathy-86bbf6fce421a5ded5065c39f28849045392a402.tar.bz2 gsoc2013-empathy-86bbf6fce421a5ded5065c39f28849045392a402.tar.lz gsoc2013-empathy-86bbf6fce421a5ded5065c39f28849045392a402.tar.xz gsoc2013-empathy-86bbf6fce421a5ded5065c39f28849045392a402.tar.zst gsoc2013-empathy-86bbf6fce421a5ded5065c39f28849045392a402.zip |
If group is UNGROUPED, display at the bottom of the roster
https://bugzilla.gnome.org/show_bug.cgi?id=678376
-rw-r--r-- | libempathy-gtk/empathy-roster-view.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index cbc2c5c14..473344c60 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -584,6 +584,11 @@ compare_group_names (const gchar *group_a, if (!tp_strdiff (group_b, TOP_GROUP)) return 1; + if (!tp_strdiff (group_a, UNGROUPED)) + return 1; + else if (!tp_strdiff (group_b, UNGROUPED)) + return -1; + return g_ascii_strcasecmp (group_a, group_b); } |