[gtk+/wip/baedert/drawing: 75/129] range: Return trough allocation from _get_range_rect



commit 5e574f4d54e65115698c68b79738a9099448bb10
Author: Timm Bäder <mail baedert org>
Date:   Sat May 13 14:36:29 2017 +0200

    range: Return trough allocation from _get_range_rect

 gtk/gtkrange.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 70c5c76..cfdfce3 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -921,7 +921,7 @@ gtk_range_get_range_rect (GtkRange     *range,
   g_return_if_fail (GTK_IS_RANGE (range));
   g_return_if_fail (range_rect != NULL);
 
-  gtk_widget_get_margin_allocation (GTK_WIDGET (range), range_rect);
+  gtk_widget_get_margin_allocation (GTK_WIDGET (range->priv->trough_widget), range_rect);
 }
 
 /**


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