summaryrefslogtreecommitdiff
path: root/gtk/gtkpaned.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-15 23:55:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-15 23:56:47 -0500
commit5db1dad869aef7c1a1d1eba20e63b7871d78e11c (patch)
tree777d0187041286197590fbe52f44607be83b0e60 /gtk/gtkpaned.c
parent42fdfb6af4ac3a689a4ec173a8eb2e80c2681700 (diff)
downloadgtk+-5db1dad869aef7c1a1d1eba20e63b7871d78e11c.tar.gz
paned: Initialize clip properly
This was causing problems in the case when only one of the paned children is visible - we would use uninitialized memory, leading to invalide clip regions. Concretely, the signal tab in the inspector would sometimes not render at all.
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r--gtk/gtkpaned.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 4aa918420f..531f5f0c70 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1357,7 +1357,7 @@ gtk_paned_allocate (GtkCssGadget *gadget,
GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
GtkPaned *paned = GTK_PANED (widget);
GtkPanedPrivate *priv = paned->priv;
- GtkAllocation clip;
+ GtkAllocation clip = { 0 };
if (priv->child1 && gtk_widget_get_visible (priv->child1) &&
priv->child2 && gtk_widget_get_visible (priv->child2))
@@ -1477,7 +1477,6 @@ gtk_paned_allocate (GtkCssGadget *gadget,
child2_allocation.height = child2_height;
}
-
gtk_css_gadget_allocate (priv->handle_gadget,
&priv->handle_pos,
-1,