summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-26 11:36:10 +0100
committerraveit65 <[email protected]>2021-01-07 18:10:25 +0100
commit40f939f9d7da4af900553febfa26205f2e193ef8 (patch)
treef5b5097715fa27f4b7d7c51d0a80c3b992e91a7f
parent36b03963a80a849be8de0bd65edd8fd9b1698881 (diff)
downloadmate-panel-40f939f9d7da4af900553febfa26205f2e193ef8.tar.bz2
mate-panel-40f939f9d7da4af900553febfa26205f2e193ef8.tar.xz
panel-toplevel: declaration of 'allocation' shadows a parameter
-rw-r--r--mate-panel/panel-toplevel.c9
1 files 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))