summaryrefslogtreecommitdiff
path: root/giscanner/gdumpparser.py
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-02-10 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2019-01-10 17:34:28 +0100
commitf606183a010fbec4382acb728882cc0eddbaf7f7 (patch)
treea94577a1c4baff25753e78896d700cd71797437f /giscanner/gdumpparser.py
parent0b6bca5d69cc0f5e5564a2858f220fac8ee4789e (diff)
downloadgobject-introspection-f606183a010fbec4382acb728882cc0eddbaf7f7.tar.gz
Restore original meaning of disguised attribute.
> Certain types like GIConv and GdkAtom are pointers internally but don't > look like pointers when referenced. They have the form. > > typedef struct _X *X; > > Parse these as structures/records but mark them in the gir with a 'disguised' > attribute so that we know that they need special handling. Additionally, stop relaying on disguised attribute when deciding whether to render a page. Check number of fields instead, so as to avoid introducing large regression in the docs. Fixes #101.
Diffstat (limited to 'giscanner/gdumpparser.py')
-rw-r--r--giscanner/gdumpparser.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
index 1730fee5..9082cbe7 100644
--- a/giscanner/gdumpparser.py
+++ b/giscanner/gdumpparser.py
@@ -230,7 +230,6 @@ blob containing data gleaned from GObject's primitive introspection."""
c_symbol_prefix='variant')
elif record.name == 'InitiallyUnownedClass':
record.fields = self._namespace.get('ObjectClass').fields
- record.disguised = False
# Introspection over the data we get from the dynamic
# GObject/GType system out of the binary
@@ -510,9 +509,6 @@ different --identifier-prefix.""" % (xmlnode.attrib['name'], self._namespace.ide
pair_node.add_gtype(boxed.gtype_name, boxed.get_type)
assert boxed.c_symbol_prefix is not None
pair_node.c_symbol_prefix = boxed.c_symbol_prefix
- # Quick hack - reset the disguised flag; we're setting it
- # incorrectly in the scanner
- pair_node.disguised = False
else:
return False