summaryrefslogtreecommitdiff
path: root/giscanner/docmain.py
diff options
context:
space:
mode:
authorLaszlo Pandy <lpandy@src.gnome.org>2011-08-11 10:57:14 +0200
committerLaszlo Pandy <lpandy@src.gnome.org>2011-08-11 12:40:24 +0200
commit28bc1cbdfc5b213d7c926e05f35709c55f5908b1 (patch)
treec195a64731f638438b887466fbf481f4b4cf1a81 /giscanner/docmain.py
parent93b27c02c1ee9ddea871c36dd1bf6e9ef443cebd (diff)
downloadgobject-introspection-28bc1cbdfc5b213d7c926e05f35709c55f5908b1.tar.gz
[docbook] Make DocBookWriter use Transformer
Diffstat (limited to 'giscanner/docmain.py')
-rw-r--r--giscanner/docmain.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/giscanner/docmain.py b/giscanner/docmain.py
index 7684944b..29b5ddfb 100644
--- a/giscanner/docmain.py
+++ b/giscanner/docmain.py
@@ -21,17 +21,15 @@
import optparse
from .docbookwriter import DocBookWriter
-from .girparser import GIRParser
+from .transformer import Transformer
class GIDocGenerator(object):
def parse(self, filename):
- self.parser = GIRParser()
- self.parser.parse(filename)
+ self.transformer = Transformer.parse_from_gir(filename)
def generate(self, writer, output):
- ns = self.parser.get_namespace()
- writer.add_namespace(ns)
+ writer.add_transformer(self.transformer)
writer.write(output)
def doc_main(args):