[gobject-introspection] g-ir-doc-tool: Remove class structs from Python docs
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] g-ir-doc-tool: Remove class structs from Python docs
- Date: Tue, 21 Feb 2012 17:16:32 +0000 (UTC)
commit b274afe8d031ab928727607231ace3f1564c4772
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date: Tue Feb 21 18:16:00 2012 +0100
g-ir-doc-tool: Remove class structs from Python docs
giscanner/mallardwriter.py | 4 ++++
.../DocExamples.ObjClass.page | 12 ------------
2 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index bb268be..e596eca 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -182,6 +182,10 @@ class MallardWriter(object):
continue
if getattr(node, 'disguised', False):
continue
+ if isinstance(node, ast.Record) and \
+ self._language == 'Python' and \
+ node.is_gtype_struct_for is not None:
+ continue
nodes.append(node)
if isinstance(node, (ast.Class, ast.Interface, ast.Record)):
nodes += getattr(node, 'methods', [])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]