From ac8964d55c1c8fa4b349a0b3c995d605b3ed33c9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 27 Dec 2013 16:55:46 +0100 Subject: [PATCH] roster-view: check the 'expanded' property on the GtkExpander EmpathyRosterGroup is no longer a GtkExpander subclass but a GtkListBoxRow one. https://bugzilla.gnome.org/show_bug.cgi?id=712566 --- libempathy-gtk/empathy-roster-view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index ba567e7c..0dab3ba6 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -196,9 +196,9 @@ add_roster_contact (EmpathyRosterView *self, } static void -group_expanded_cb (EmpathyRosterGroup *group, +group_expanded_cb (GtkWidget *expander, GParamSpec *spec, - EmpathyRosterView *self) + EmpathyRosterGroup *group) { GList *widgets, *l; @@ -241,8 +241,8 @@ ensure_roster_group (EmpathyRosterView *self, gtk_expander_set_expanded (EMPATHY_ROSTER_GROUP (roster_group)->expander, empathy_contact_group_get_expanded (group)); - g_signal_connect (roster_group, "notify::expanded", - G_CALLBACK (group_expanded_cb), self); + g_signal_connect (EMPATHY_ROSTER_GROUP (roster_group)->expander, + "notify::expanded", G_CALLBACK (group_expanded_cb), roster_group); gtk_widget_show (roster_group); gtk_container_add (GTK_CONTAINER (self), roster_group); -- 2.39.2