summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-11 10:26:28 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-12 07:04:32 +0100
commitb0add1200ab5e61c88a5eb158c92faebef7debfd (patch)
tree3b8683099a1121cc2e9f63c874084e9b03d5c8b1
parentbf419c1b16707d4fb7beb30fb08f284cb39c5292 (diff)
downloadmate-panel-b0add1200ab5e61c88a5eb158c92faebef7debfd.tar.bz2
mate-panel-b0add1200ab5e61c88a5eb158c92faebef7debfd.tar.xz
GTK+3 fish: fix a Wunused-but-set-variable build warning
-rw-r--r--applets/fish/fish.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index fc729e9a..35531b73 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -1481,8 +1481,8 @@ static gboolean fish_applet_draw(GtkWidget* widget, cairo_t *cr, FishApplet* fis
static gboolean fish_applet_expose_event(GtkWidget* widget, GdkEventExpose* event, FishApplet* fish)
#endif
{
- GdkWindow *window;
#if !GTK_CHECK_VERSION (3, 0, 0)
+ GdkWindow *window;
GtkStyle *style;
GtkStateType state;
#endif
@@ -1497,8 +1497,8 @@ static gboolean fish_applet_expose_event(GtkWidget* widget, GdkEventExpose* even
g_assert (fish->n_frames > 0);
- window = gtk_widget_get_window (widget);
#if !GTK_CHECK_VERSION (3, 0, 0)
+ window = gtk_widget_get_window (widget);
style = gtk_widget_get_style (widget);
state = gtk_widget_get_state (widget);
#endif