forked from AuroraMiddleware/gtk
range: Fix get_range_rect
get_own_allocation's position is relative to the given widget's origin, not the parent.
This commit is contained in:
parent
468e75e43d
commit
4eba9442df
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user