aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/PlatGTK.cxx2
1 files changed, 1 insertions, 1 deletions
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)