summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-11 08:10:33 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-12 07:04:31 +0100
commitbf419c1b16707d4fb7beb30fb08f284cb39c5292 (patch)
tree25065943be032147997a0ed476a32e4f4ee55186
parentefa22493824093113ca4dd8616f15b1ce4d5bb23 (diff)
downloadmate-panel-bf419c1b16707d4fb7beb30fb08f284cb39c5292.tar.bz2
mate-panel-bf419c1b16707d4fb7beb30fb08f284cb39c5292.tar.xz
GTK+3 panel-frame: fix a Wunused build warning
-rw-r--r--mate-panel/panel-frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mate-panel/panel-frame.c b/mate-panel/panel-frame.c
index 25a245d6..36125917 100644
--- a/mate-panel/panel-frame.c
+++ b/mate-panel/panel-frame.c
@@ -232,7 +232,6 @@ panel_frame_draw (GtkWidget *widget,
PanelFrameEdge edges)
{
PanelFrame *frame = (PanelFrame *) widget;
- GdkWindow *window;
#if GTK_CHECK_VERSION (3, 0, 0)
GtkStyleContext *context;
GtkStateFlags state;
@@ -240,6 +239,7 @@ panel_frame_draw (GtkWidget *widget,
GdkRGBA dark, light;
GtkBorder padding;
#else
+ GdkWindow *window;
GtkStyle *style;
GtkStateType state;
GtkAllocation allocation;
@@ -252,7 +252,6 @@ panel_frame_draw (GtkWidget *widget,
if (edges == PANEL_EDGE_NONE)
return;
- window = gtk_widget_get_window (widget);
#if GTK_CHECK_VERSION (3, 0, 0)
context = gtk_widget_get_style_context (widget);
state = gtk_widget_get_state_flags (widget);
@@ -269,6 +268,7 @@ panel_frame_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
#else
+ window = gtk_widget_get_window (widget);
style = gtk_widget_get_style (widget);
state = gtk_widget_get_state (widget);