summaryrefslogtreecommitdiff
path: root/giscanner/mallardwriter.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 12:21:41 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 12:21:41 +0100
commitfb98a4f19da972709ac56b89a1184624e23bc224 (patch)
treec4b547682b24a74a4c873616cfbd3f760ca9572f /giscanner/mallardwriter.py
parent1ff74fb0a469f3f1f00692e20834cce3bd7b212a (diff)
downloadgobject-introspection-fb98a4f19da972709ac56b89a1184624e23bc224.tar.gz
g-ir-doc-tool: Show how to construct instances in the Class page
Diffstat (limited to 'giscanner/mallardwriter.py')
-rw-r--r--giscanner/mallardwriter.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index fcfd2368..351a8c1f 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -30,6 +30,7 @@ from mako.template import Template
from mako.runtime import supports_caller
from . import ast
+from .utils import to_underscores
class MallardFormatter(object):
def __init__(self, namespace):
@@ -90,6 +91,9 @@ class MallardFormatter(object):
return " / ".join(flags)
+ def to_underscores(self, string):
+ return to_underscores(string)
+
class MallardFormatterC(MallardFormatter):
def format_type(self, type_):