[empathy] roster-view: compare groups using strcmp
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] roster-view: compare groups using strcmp
- Date: Tue, 4 Sep 2012 08:33:07 +0000 (UTC)
commit f6ad0c3b5b0ffcf6c89430a684c32b130f8e3ec1
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Sep 4 10:11:04 2012 +0200
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index bd62aad..8c2c277 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]