GtkStatusbar: Fix resize-grip overlap calculation
The allocation is relative to the window, so the way the statusbar was doing the overlap calculation was wrong.
This commit is contained in:
parent
9ef2fdf956
commit
b0936a12d9
@ -666,12 +666,7 @@ gtk_statusbar_size_allocate (GtkWidget *widget,
|
|||||||
gtk_window_resize_grip_is_visible (GTK_WINDOW (window)))
|
gtk_window_resize_grip_is_visible (GTK_WINDOW (window)))
|
||||||
{
|
{
|
||||||
gtk_window_get_resize_grip_area (GTK_WINDOW (window), &rect);
|
gtk_window_get_resize_grip_area (GTK_WINDOW (window), &rect);
|
||||||
if (gtk_widget_translate_coordinates (gtk_widget_get_parent (widget),
|
if (gtk_widget_translate_coordinates (widget, window, 0, 0, &x, &y))
|
||||||
window,
|
|
||||||
allocation->x,
|
|
||||||
allocation->y,
|
|
||||||
&x,
|
|
||||||
&y))
|
|
||||||
{
|
{
|
||||||
translated_rect.x = x;
|
translated_rect.x = x;
|
||||||
translated_rect.y = y;
|
translated_rect.y = y;
|
||||||
|
Loading…
Reference in New Issue
Block a user