From 3f7c041025a032be8a99f04bb5ebaaba0ef15d2e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 12 May 2011 12:41:09 +1000 Subject: Switching to function that works on all supported versions of GTK+. --- gtk/PlatGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index c1b4e29e2..8359f4db9 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -999,7 +999,7 @@ void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_, WindowID #ifdef USE_CAIRO if (height > 0 && width > 0) psurf = CreateSimilarSurface( - gtk_widget_get_window(PWidget(wid)), + WindowFromWidget(PWidget(wid)), CAIRO_CONTENT_COLOR_ALPHA, width, height); #else if (height > 0 && width > 0) -- cgit v1.2.3