From e0877a5764f375dc8f4febea6bd0c3c949e252f7 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 13 Jan 2016 15:18:13 +0300 Subject: common: fix unused variable warning in GTK+3 build --- capplets/common/theme-thumbnail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'capplets/common') diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c index f5417ca1..1523317f 100644 --- a/capplets/common/theme-thumbnail.c +++ b/capplets/common/theme-thumbnail.c @@ -96,8 +96,8 @@ static void draw_window_on_pixbuf(GtkWidget* widget, GdkPixbuf* pixbuf) static GdkPixmap* draw_window_on_pixbuf(GtkWidget* widget) #endif { - GdkVisual* visual; #if !GTK_CHECK_VERSION (3, 0, 0) + GdkVisual* visual; GdkPixmap* pixmap; #endif GtkStyle* style; @@ -114,8 +114,8 @@ static GdkPixmap* draw_window_on_pixbuf(GtkWidget* widget) gtk_window_get_size(GTK_WINDOW(widget), &width, &height); - visual = gtk_widget_get_visual(widget); #if !GTK_CHECK_VERSION (3, 0, 0) + visual = gtk_widget_get_visual(widget); pixmap = gdk_pixmap_new(NULL, width, height, gdk_visual_get_depth (visual)); gdk_drawable_set_colormap(GDK_DRAWABLE(pixmap), gtk_widget_get_colormap(widget)); #endif -- cgit v1.2.1