diff options
author | monsta <[email protected]> | 2016-01-13 15:18:13 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-13 15:18:13 +0300 |
commit | e0877a5764f375dc8f4febea6bd0c3c949e252f7 (patch) | |
tree | 7e7bd1ea96ef483ac47da882e7d1617ebcbc806a /capplets/common/theme-thumbnail.c | |
parent | cd0afb06b414344410c5f3b3df05cc7373474579 (diff) | |
download | mate-control-center-e0877a5764f375dc8f4febea6bd0c3c949e252f7.tar.bz2 mate-control-center-e0877a5764f375dc8f4febea6bd0c3c949e252f7.tar.xz |
common: fix unused variable warning in GTK+3 build
Diffstat (limited to 'capplets/common/theme-thumbnail.c')
-rw-r--r-- | capplets/common/theme-thumbnail.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |