[gtk+/wip/baedert/drawing: 105/186] gtkscale: Properly initialize the clip



commit 6788e6f0caf5cb137b289408d76ba726fe43aa1a
Author: Timm Bäder <mail baedert org>
Date:   Fri May 5 13:19:05 2017 +0200

    gtkscale: Properly initialize the clip

 gtk/gtkscale.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index b760356..bde4a8b 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -598,12 +598,12 @@ gtk_scale_size_allocate (GtkWidget     *widget,
 {
   GtkScale *scale = GTK_SCALE (widget);
   GtkScalePrivate *priv = scale->priv;
-  GtkAllocation clip, marks_clip, range_rect, marks_rect;
+  GtkAllocation clip = *allocation;
+  GtkAllocation marks_clip, range_rect, marks_rect;
   GtkOrientation orientation;
 
   GTK_WIDGET_CLASS (gtk_scale_parent_class)->size_allocate (widget, allocation);
 
-  gtk_widget_get_clip (widget, &clip);
   orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (widget));
   gtk_range_get_range_rect (GTK_RANGE (scale), &range_rect);
 


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