Write out and parse full GObject property information (readable, writable, etc)

* girepository/girparser.c: Default to "readable" for properties.
	* giscanner/ast.py: Add readable, writable etc.
	* giscanner/girwriter.py: Writ them.
	* giscanner/glibtransformer.py: Inspect them.
	* tests/*: Update.

svn path=/trunk/; revision=587
This commit is contained in:
Colin Walters 2008-09-08 22:24:09 +00:00
parent 8f09203dda
commit 7a55bd25d9

View File

@ -1191,7 +1191,8 @@ start_property (GMarkupParseContext *context,
((GIrNode *)property)->name = g_strdup (name); ((GIrNode *)property)->name = g_strdup (name);
if (readable && strcmp (readable, "1") == 0) /* Assume properties are readable */
if (readable == NULL || strcmp (readable, "1") == 0)
property->readable = TRUE; property->readable = TRUE;
else else
property->readable = FALSE; property->readable = FALSE;