aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-05-12 12:41:09 +1000
committernyamatongwe <devnull@localhost>2011-05-12 12:41:09 +1000
commit83579011c5b721c7c23e665bff23fac0a48147cc (patch)
treeb2ed6c8193ceb1a079db54a91d980bcb8fd68605
parent8eb9c9e930c923bcd03e51a1a2626d137b1452db (diff)
downloadscintilla-mirror-83579011c5b721c7c23e665bff23fac0a48147cc.tar.gz
Switching to function that works on all supported versions of 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)