From 40f939f9d7da4af900553febfa26205f2e193ef8 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 26 Dec 2020 11:36:10 +0100 Subject: panel-toplevel: declaration of 'allocation' shadows a parameter --- mate-panel/panel-toplevel.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c index 53330100..20b15e93 100644 --- a/mate-panel/panel-toplevel.c +++ b/mate-panel/panel-toplevel.c @@ -3241,7 +3241,7 @@ panel_toplevel_size_allocate (GtkWidget *widget, GtkBin *bin = (GtkBin *) widget; GtkStyleContext *context; GtkStateFlags state; - GtkBorder padding; + GtkBorder padding; GtkWidget *child; GtkAllocation challoc; GtkAllocation child_allocation; @@ -3297,10 +3297,11 @@ panel_toplevel_size_allocate (GtkWidget *widget, challoc.y != child_allocation.y || challoc.width != child_allocation.width || challoc.height != child_allocation.height)) { - GtkAllocation allocation; + GtkAllocation allocation_to_invalidate; - gtk_widget_get_allocation (widget, &allocation); - gdk_window_invalidate_rect (gtk_widget_get_window (widget), &allocation, FALSE); + gtk_widget_get_allocation (widget, &allocation_to_invalidate); + gdk_window_invalidate_rect (gtk_widget_get_window (widget), + &allocation_to_invalidate, FALSE); } if (child && gtk_widget_get_visible (child)) -- cgit v1.2.1