[gtk+/wip/baedert/drawing: 29/49] range: Return trough allocation from _get_range_rect



commit a6bc7e0aabae2ff3acd57c7317f655063e17bdd1
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 a0f1f04..dc0c167 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -929,7 +929,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]