[gtk+/wip/baedert/drawing: 8/142] gtkscale: Properly initialize the clip



commit 93693090dbbacc32b5d9f87db9a593ba9e2b7a75
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]