mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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)
|
m = func_new_pat.match(name)
|
||||||
if pointer_pat.match(ret) and m:
|
if pointer_pat.match(ret) and m:
|
||||||
cname = ''
|
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()
|
cname += s.title()
|
||||||
if cname != '':
|
if cname != '':
|
||||||
self.fp.write(' (is-constructor-of "' + cname + '")\n')
|
self.fp.write(' (is-constructor-of "' + cname + '")\n')
|
||||||
|
|
Loading…
Reference in a new issue