From ff04e383261330395a2e53fb4060ef26f9fa010c Mon Sep 17 00:00:00 2001 From: Alban Browaeys Date: Tue, 28 Sep 2010 21:12:22 +0200 Subject: [PATCH] Replace gtk_window_set_visual() with gtk_widget_set_visual() gtk_window_set_visual() was changed back to work on a widget level for more compatibility with 2.x. https://bugzilla.gnome.org/show_bug.cgi?id=630843 --- src/ui/tile-preview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/tile-preview.c b/src/ui/tile-preview.c index bb2ad992d..b2ba4f201 100644 --- a/src/ui/tile-preview.c +++ b/src/ui/tile-preview.c @@ -165,7 +165,7 @@ meta_tile_preview_new (int screen_number, if (preview->has_alpha) { #ifdef USE_GTK3 - 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,