[gtk+/wip/baedert/drawing: 314/359] range: Fix get_range_rect
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 314/359] range: Fix get_range_rect
- Date: Thu, 13 Jul 2017 14:54:11 +0000 (UTC)
commit ff23b03f5fb066bc75f9c71f439b790ead931ede
Author: Timm Bäder <mail baedert org>
Date: Fri Jun 30 13:21:06 2017 +0200
range: Fix get_range_rect
get_own_allocation's position is relative to the given widget's origin,
not the parent.
gtk/gtkrange.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 0a5fbc1..839d22c 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -922,7 +922,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_own_allocation (range->priv->trough_widget, range_rect);
+ gtk_widget_get_outer_allocation (range->priv->trough_widget, range_rect);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]