1
0
python-wxPython/0001-Support-building-with-Doxygen-1.9.7.patch
Jan Engelhardt 2955e5c25f - prepare for python 3.13
* Added wrappers for the OSXEnableAutomaticQuoteSubstitution,
  * Many of the deprecated items in wxWidgets and wxPython are being or have
    been removed. Be sure to test your code in a recent 4.0.x release with
    warnings enabled so you can see which class, method or function calls
  * Bug fixes in wx.lib.calendar: key navigation across month boundaries is
  * Switch to using a wx.Overlay in the Widget Inspection Tool to highlight
  * Fixed issue in wx.lib.agw.customtreectrl where the label editor could
    widgets like wx.ListCtrl, wx.TreeCtrl and wx.dataview.DataViewCtrl.
  * The wx.WS_EX_VALIDATE_RECURSIVELY extended style flag is obsolete,
    as it is now the default (and only) behavior. The style flag has been added
    back into wxPython for compatibility, but with a zero value. You can just
  * Fix a sometimes crash when using a wx.Overlay by letting the wx.DCOverlay
  * Replaced the Vagrant VMs used for building wxPython for various Linux distros
  * Added the wx.svg package which contains code for parsing SVG
    (Scalable Vector Graphics) files, and also code for integrating with
    wxPython. It can rasterize the SVG to a wx.Bitmap of any size with no
    loss of quality, and it can also render the SVG directly to a
  * Fixed wx.GetApp() to use wxWidgets' global wxApp instance instead of
    maintaining its own pointer. This way, if the wxApp is created by C++
  * Added wx.adv.GenericAnimationCtrl so the generic version of the animation
    classes can be used even on the platforms that have a native version.
    Note that due to internal changes to support both types of animations,
    some API changes in how the Animation objects are created. See the
  * Added wrappers for the wx.grid.GridBlockCoords, wx.grid.GridBlocks, and
    wx.grid.GridBlockDiffResult classes, as well as associated new methods
    in the wx.grid.Grid class. These provide a new way to interact with blocks
    which should be a more efficient (time and memory) way to process large
  * Fixed issue when sys.prefix is not unicode (Python2) and when its contents

OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=55
2024-07-16 14:52:27 +00:00

49 lines
1.9 KiB
Diff

From 6a049ccc0ad96f25c3f7d8540b218ffe8921d8c5 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Tue, 5 Dec 2023 23:42:21 -0500
Subject: [PATCH] Support building with Doxygen 1.9.7
Doxygen 1.9.7 made some changes whereby some method definitions are now
defined in separate XML files, with a "refid" that links to them. In
order to support this, we need to follow these "refids" to pick up the
method definition from the separate group XML files.
---
etgtools/extractors.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/etgtools/extractors.py b/etgtools/extractors.py
index 8c992cb14..5ae1361f9 100644
--- a/etgtools/extractors.py
+++ b/etgtools/extractors.py
@@ -62,6 +62,8 @@ def extract(self, element):
# class. Should be overridden in derived classes to get what each one
# needs in addition to the base.
self.name = element.find(self.nameTag).text
+ if self.name is None:
+ self.name = ''
if '::' in self.name:
loc = self.name.rfind('::')
self.name = self.name[loc+2:]
@@ -1574,12 +1576,21 @@ def addElement(self, element):
extractingMsg(kind, element)
for node in element.findall('sectiondef/memberdef'):
self.addElement(node)
+ for node in element.findall('sectiondef/member'):
+ node = self.resolveRefid(node)
+ self.addElement(node)
else:
raise ExtractorError('Unknown module item kind: %s' % kind)
return item
+ def resolveRefid(self, node):
+ from etgtools import XMLSRC
+ refid = node.get('refid')
+ fname = os.path.join(XMLSRC, refid.rsplit('_', 1)[0]) + '.xml'
+ root = et.parse(fname).getroot()
+ return root.find(".//memberdef[@id='{}']".format(refid))
def addCppFunction(self, type, name, argsString, body, doc=None, **kw):