[gobject-introspection] g-ir-doc-tool: Remove constructors from python docs
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] g-ir-doc-tool: Remove constructors from python docs
- Date: Tue, 21 Feb 2012 16:18:59 +0000 (UTC)
commit c5e08fdb776e704b1f6a49e0f62fa08d2a0905a1
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date: Tue Feb 21 16:52:04 2012 +0100
g-ir-doc-tool: Remove constructors from python docs
giscanner/mallardwriter.py | 3 +-
.../DocExamples.Obj.new.page | 31 --------------------
2 files changed, 2 insertions(+), 32 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index a7154b5..9f11c60 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -185,11 +185,12 @@ class MallardWriter(object):
nodes.append(node)
if isinstance(node, (ast.Class, ast.Interface, ast.Record)):
nodes += getattr(node, 'methods', [])
- nodes += getattr(node, 'constructors', [])
nodes += getattr(node, 'static_methods', [])
nodes += getattr(node, 'virtual_methods', [])
nodes += getattr(node, 'properties', [])
nodes += getattr(node, 'signals', [])
+ if self._language == 'C':
+ nodes += getattr(node, 'constructors', [])
for node in nodes:
self._render_node(node, output)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]