mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Fix wrappers for platform-specific GTKSuppressDiagnostics and OSXEnableNewLineReplacement
They need to be generated for all platforms, even if they do not do anything on some.
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
import etgtools
|
import etgtools
|
||||||
import etgtools.tweaker_tools as tools
|
import etgtools.tweaker_tools as tools
|
||||||
from etgtools import PyFunctionDef, PyCodeDef, PyPropertyDef
|
from etgtools import PyFunctionDef, PyCodeDef, PyPropertyDef
|
||||||
import sys
|
|
||||||
|
|
||||||
PACKAGE = "wx"
|
PACKAGE = "wx"
|
||||||
MODULE = "_core"
|
MODULE = "_core"
|
||||||
@@ -207,8 +206,11 @@ def run():
|
|||||||
c.addProperty('UseBestVisual GetUseBestVisual SetUseBestVisual')
|
c.addProperty('UseBestVisual GetUseBestVisual SetUseBestVisual')
|
||||||
c.addProperty('TopWindow GetTopWindow SetTopWindow')
|
c.addProperty('TopWindow GetTopWindow SetTopWindow')
|
||||||
|
|
||||||
if sys.platform != 'linux':
|
c.find('GTKSuppressDiagnostics').setCppCode("""\
|
||||||
c.find('GTKSuppressDiagnostics').ignore()
|
#ifdef __WXGTK__
|
||||||
|
GTKSuppressDiagnostics(flags);
|
||||||
|
#endif
|
||||||
|
""")
|
||||||
|
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
# License: wxWindows License
|
# License: wxWindows License
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
import etgtools
|
import etgtools
|
||||||
import etgtools.tweaker_tools as tools
|
import etgtools.tweaker_tools as tools
|
||||||
|
|
||||||
@@ -151,9 +149,12 @@ def parseAndTweakModule():
|
|||||||
c.find('EnableProofCheck').ignore()
|
c.find('EnableProofCheck').ignore()
|
||||||
c.find('GetProofCheckOptions').ignore()
|
c.find('GetProofCheckOptions').ignore()
|
||||||
|
|
||||||
# This function only exists on OSX
|
# This method exists only on OSX
|
||||||
if sys.platform != 'darwin':
|
c.find('OSXEnableNewLineReplacement').setCppCode("""\
|
||||||
c.find('OSXEnableNewLineReplacement').ignore()
|
#ifdef __WXMAC__
|
||||||
|
self->OSXEnableNewLineReplacement(enable);
|
||||||
|
#endif
|
||||||
|
""")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user