mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 18:16:34 +02:00
gdbus-codegen: Generate docs when generating C code
This is handy for both gtk-doc and gobject-introspection. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -35,6 +35,7 @@ class DocbookCodeGenerator:
|
||||
def __init__(self, ifaces, docbook):
|
||||
self.ifaces = ifaces
|
||||
self.docbook = docbook
|
||||
self.generate_expand_dicts()
|
||||
|
||||
def print_method_prototype(self, i, m, in_synopsis):
|
||||
max_method_len = 0
|
||||
@@ -259,7 +260,6 @@ class DocbookCodeGenerator:
|
||||
self.expand_iface_dict_keys.sort(reverse=True)
|
||||
|
||||
def generate(self):
|
||||
self.generate_expand_dicts()
|
||||
for i in self.ifaces:
|
||||
self.out = file('%s-%s.xml'%(self.docbook, i.name), 'w')
|
||||
self.out.write(''%())
|
||||
|
Reference in New Issue
Block a user