Call gtk_widget_set_allocation() during size_allocate
Fixes panels not drawing themselves with GTK 3.
This commit is contained in:
parent
a0974d0e13
commit
341dfaa879
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue