[empathy/gnome-3-10] roster-view: check the 'expanded' property on the GtkExpander



commit ac8964d55c1c8fa4b349a0b3c995d605b3ed33c9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Dec 27 16:55:46 2013 +0100

    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 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index ba567e7..0dab3ba 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]