From f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 4 Sep 2012 10:11:04 +0200 Subject: roster-view: compare groups using strcmp 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk/empathy-roster-view.c') diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index bd62aadf6..8c2c277b6 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -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); -- cgit v1.2.3