]> git.0d.be Git - empathy.git/commitdiff
roster-view: compare groups using strcmp
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 4 Sep 2012 08:11:04 +0000 (10:11 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 4 Sep 2012 08:31:28 +0000 (10:31 +0200)
Groups are added to the list in another file (the model) so the string will
have another address than the one in the view.

https://bugzilla.gnome.org/show_bug.cgi?id=683314

libempathy-gtk/empathy-roster-view.c

index bd62aadf6eb6467d2942019d2b7df1ad998d4501..8c2c277b62828f2f1ac8eac67c2823359b8dca4d 100644 (file)
@@ -591,7 +591,8 @@ contact_in_top (EmpathyRosterView *self,
       groups = empathy_roster_model_get_groups_for_individual (
           self->priv->model, individual);
 
-      if (g_list_find (groups, EMPATHY_ROSTER_MODEL_GROUP_TOP_GROUP) != NULL)
+      if (g_list_find_custom (groups, EMPATHY_ROSTER_MODEL_GROUP_TOP_GROUP,
+            (GCompareFunc) g_strcmp0) != NULL)
         result = TRUE;
 
       g_list_free (groups);