summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/tile-preview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tile-preview.c b/src/ui/tile-preview.c
index 75421f30..d994ec52 100644
--- a/src/ui/tile-preview.c
+++ b/src/ui/tile-preview.c
@@ -174,7 +174,7 @@ meta_tile_preview_new (int screen_number,
if (preview->has_alpha)
{
#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_window_set_visual (GTK_WINDOW (preview->preview_window),
+ gtk_widget_set_visual (preview->preview_window,
gdk_screen_get_rgba_visual (screen));
#else
gtk_widget_set_colormap (preview->preview_window, rgba_colormap);