summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
Diffstat (limited to 'capplets')
-rw-r--r--capplets/common/theme-thumbnail.c4
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