[empathy] If group is UNGROUPED, display at the bottom of the roster



commit 86bbf6fce421a5ded5065c39f28849045392a402
Author: Laurent Contzen <lcontzen gmail com>
Date:   Tue Jun 19 14:44:17 2012 +0200

    If group is UNGROUPED, display at the bottom of the roster
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678376

 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 cbc2c5c..473344c 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);
 }
 



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