aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-view.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-04 16:11:04 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-04 16:31:28 +0800
commitf6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1 (patch)
treefc64b7287eb4434be598dd8a5edc2cf5262bfc31 /libempathy-gtk/empathy-roster-view.c
parent6d5797f1c816826e4d1e398f7cc0503db1e993fb (diff)
downloadgsoc2013-empathy-f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1.tar
gsoc2013-empathy-f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1.tar.gz
gsoc2013-empathy-f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1.tar.bz2
gsoc2013-empathy-f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1.tar.lz
gsoc2013-empathy-f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1.tar.xz
gsoc2013-empathy-f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1.tar.zst
gsoc2013-empathy-f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1.zip
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
Diffstat (limited to 'libempathy-gtk/empathy-roster-view.c')
-rw-r--r--libempathy-gtk/empathy-roster-view.c3
1 files changed, 2 insertions, 1 deletions
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);