aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-group.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-08-29 17:49:48 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-04 22:31:14 +0800
commita2b853f3f87579d32a835c22bfcdedeab965df8c (patch)
tree56d31af5fa7ac1b69f21cfaae82db5d20023daa9 /libempathy-gtk/empathy-roster-group.c
parent0e9e3cf651969dc4b4e82ddade02a02ca0ba1e5d (diff)
downloadgsoc2013-empathy-a2b853f3f87579d32a835c22bfcdedeab965df8c.tar
gsoc2013-empathy-a2b853f3f87579d32a835c22bfcdedeab965df8c.tar.gz
gsoc2013-empathy-a2b853f3f87579d32a835c22bfcdedeab965df8c.tar.bz2
gsoc2013-empathy-a2b853f3f87579d32a835c22bfcdedeab965df8c.tar.lz
gsoc2013-empathy-a2b853f3f87579d32a835c22bfcdedeab965df8c.tar.xz
gsoc2013-empathy-a2b853f3f87579d32a835c22bfcdedeab965df8c.tar.zst
gsoc2013-empathy-a2b853f3f87579d32a835c22bfcdedeab965df8c.zip
roster-group: inherit from GtkListBoxRow
Need to be pack in a GtkListBox. https://bugzilla.gnome.org/show_bug.cgi?id=706988
Diffstat (limited to 'libempathy-gtk/empathy-roster-group.c')
-rw-r--r--libempathy-gtk/empathy-roster-group.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-roster-group.c b/libempathy-gtk/empathy-roster-group.c
index 9ca53a8e9..753655ab5 100644
--- a/libempathy-gtk/empathy-roster-group.c
+++ b/libempathy-gtk/empathy-roster-group.c
@@ -3,7 +3,7 @@
#include <telepathy-glib/telepathy-glib.h>
-G_DEFINE_TYPE (EmpathyRosterGroup, empathy_roster_group, GTK_TYPE_EXPANDER)
+G_DEFINE_TYPE (EmpathyRosterGroup, empathy_roster_group, GTK_TYPE_LIST_BOX_ROW)
enum
{
@@ -116,7 +116,7 @@ empathy_roster_group_constructed (GObject *object)
gtk_widget_show_all (box);
- gtk_expander_set_label_widget (GTK_EXPANDER (self), box);
+ gtk_expander_set_label_widget (self->expander, box);
}
static void
@@ -181,6 +181,13 @@ empathy_roster_group_init (EmpathyRosterGroup *self)
EMPATHY_TYPE_ROSTER_GROUP, EmpathyRosterGroupPriv);
self->priv->widgets = g_hash_table_new (NULL, NULL);
+
+ self->expander = GTK_EXPANDER (gtk_expander_new (NULL));
+ gtk_expander_set_use_markup (self->expander, TRUE);
+ gtk_expander_set_expanded (self->expander, TRUE);
+ gtk_widget_show (GTK_WIDGET (self->expander));
+
+ gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (self->expander));
}
GtkWidget *
@@ -190,8 +197,6 @@ empathy_roster_group_new (const gchar *name,
return g_object_new (EMPATHY_TYPE_ROSTER_GROUP,
"name", name,
"icon", icon,
- "use-markup", TRUE,
- "expanded", TRUE,
NULL);
}