summaryrefslogtreecommitdiff
path: root/libgnome-control-center
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-24 10:24:22 +0200
committerBenjamin Otte <otte@redhat.com>2010-08-24 10:24:56 +0200
commit341dfaa879507c9d3f1d950ac0e2a82b929385fd (patch)
treeed4593964912a37893480c22fc1eda729c95c720 /libgnome-control-center
parenta0974d0e13f1d1f2ed03bce732f30ad42e04937b (diff)
Call gtk_widget_set_allocation() during size_allocate
Fixes panels not drawing themselves with GTK 3.
Diffstat (limited to 'libgnome-control-center')
-rw-r--r--libgnome-control-center/cc-panel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgnome-control-center/cc-panel.c b/libgnome-control-center/cc-panel.c
index d93f18c49..dd9b8cd78 100644
--- a/libgnome-control-center/cc-panel.c
+++ b/libgnome-control-center/cc-panel.c
@@ -153,11 +153,13 @@ cc_panel_size_allocate (GtkWidget *widget,
GtkAllocation child_allocation;
guint border_width;
+ gtk_widget_set_allocation (widget, allocation);
+
+
child_allocation = *allocation;
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
child_allocation.width -= 2 * border_width;
child_allocation.height -= 2 * border_width;