mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
pyges: Make use of the namespace for the constructor classnames in codegen
This commit is contained in:
parent
90f23b9a47
commit
c66bdbe708
1 changed files with 7 additions and 1 deletions
|
@ -509,7 +509,13 @@ class DefsWriter:
|
|||
m = func_new_pat.match(name)
|
||||
if pointer_pat.match(ret) and m:
|
||||
cname = ''
|
||||
for s in m.group(1).split ('_'):
|
||||
names = m.group(1).split('_')
|
||||
|
||||
if self.namespace:
|
||||
cname = self.namespace
|
||||
names = names[1:]
|
||||
|
||||
for s in names:
|
||||
cname += s.title()
|
||||
if cname != '':
|
||||
self.fp.write(' (is-constructor-of "' + cname + '")\n')
|
||||
|
|
Loading…
Reference in a new issue