From 6d4555b60f7cd947586852d862f05353850fc4f6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 2 May 2013 01:01:17 +0000 Subject: [PATCH] Just return 0 from GetPixel if on wxGTK3 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/colour.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etg/colour.py b/etg/colour.py index 14e73a98..c4e21020 100644 --- a/etg/colour.py +++ b/etg/colour.py @@ -80,8 +80,12 @@ def run(): c.find('GetPixel').ignore() # We need to add a typcast c.addCppMethod('wxIntPtr', 'GetPixel', '()', """\ - return (wxIntPtr)self->GetPixel(); - """) + #ifdef __WXGTK3__ + return 0; + #else + return (wxIntPtr)self->GetPixel(); + #endif + """) # Set a flag on the return value and parameter types that are 'unsigned char' # such that they will be treated as an integer instead of a string.