summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-toplevel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
index f1de8af0..164b3bd5 100644
--- a/mate-panel/panel-toplevel.c
+++ b/mate-panel/panel-toplevel.c
@@ -3351,7 +3351,6 @@ static gboolean panel_toplevel_expose(GtkWidget* widget, GdkEventExpose* event)
PanelToplevel* toplevel = (PanelToplevel*) widget;
PanelFrameEdge edges;
gboolean retval = FALSE;
- GdkWindow *window;
#if GTK_CHECK_VERSION (3, 0, 0)
int awidth;
int aheight;
@@ -3359,6 +3358,7 @@ static gboolean panel_toplevel_expose(GtkWidget* widget, GdkEventExpose* event)
GtkStateFlags state;
GtkBorder padding;
#else
+ GdkWindow *window;
GtkStyle *style;
GtkStateType state;
GtkAllocation allocation;
@@ -3388,7 +3388,6 @@ static gboolean panel_toplevel_expose(GtkWidget* widget, GdkEventExpose* event)
return retval;
#if GTK_CHECK_VERSION (3, 0, 0)
- window = gtk_widget_get_window (widget);
state = gtk_widget_get_state_flags (widget);
awidth = gtk_widget_get_allocated_width (widget);
aheight = gtk_widget_get_allocated_height (widget);