diff options
author | Juerg Billeter <j@bitron.ch> | 2007-11-03 15:28:20 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-11-03 15:28:20 +0000 |
commit | 04b4ccf726eee2128ad951c243133d4587b53344 (patch) | |
tree | 4ad7365a4c6811795d1ca5c30256eb364c1c886c /gobject-introspection | |
parent | 2ca2462ec34af1ddb0b3101cc1c09bf48add54f7 (diff) | |
download | vala-04b4ccf726eee2128ad951c243133d4587b53344.tar.gz |
fix generated properties, from gobject-introspection git
2007-11-03 Juerg Billeter <j@bitron.ch>
* gobject-introspection/gen-introspect.c: fix generated properties, from
gobject-introspection git
* vapi/packages/atk/atk.gi, vapi/packages/gdk-2.0/gdk-2.0.gi,
vapi/packages/gio-2.0/gio-2.0.gi, vapi/packages/gtk+-2.0/gtk+-2.0.gi,
vapi/packages/pango/pango.gi: regenerated
* vapi/atk.vapi, vapi/gdk-2.0.vapi, vapi/gio-2.0.vapi,
vapi/gtk+-2.0.vapi, vapi/pango.vapi: regenerated
svn path=/trunk/; revision=675
Diffstat (limited to 'gobject-introspection')
-rw-r--r-- | gobject-introspection/gen-introspect.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gobject-introspection/gen-introspect.c b/gobject-introspection/gen-introspect.c index 5edb5ef96..34fb0e8c7 100644 --- a/gobject-introspection/gen-introspect.c +++ b/gobject-introspection/gen-introspect.c @@ -114,7 +114,7 @@ static void constant_generate (GIGenerator *igenerator, GIdlNodeConstant *node) static void property_generate (GIGenerator *igenerator, GIdlNodeProperty *node) { - char *markup = g_markup_printf_escaped ("<property name=\"%s\" type=\"%s\"/>\n", node->node.name, node->type->unparsed); + char *markup = g_markup_printf_escaped ("<property name=\"%s\" type=\"%s\" readable=\"%s\" writable=\"%s\" construct=\"%s\" construct-only=\"%s\"/>\n", node->node.name, node->type->unparsed, node->readable ? "1" : "0", node->writable ? "1" : "0", node->construct ? "1" : "0", node->construct_only ? "1" : "0"); g_igenerator_write (igenerator, markup); g_free (markup); } @@ -425,6 +425,10 @@ static void g_igenerator_process_properties (GIGenerator *igenerator, GIdlNodeIn giprop->node.name = properties[i]->name; ginode->members = g_list_insert_sorted (ginode->members, giprop, (GCompareFunc) g_idl_node_cmp); giprop->type = get_type_from_type_id (properties[i]->value_type); + giprop->readable = (properties[i]->flags & G_PARAM_READABLE) != 0; + giprop->writable = (properties[i]->flags & G_PARAM_WRITABLE) != 0; + giprop->construct = (properties[i]->flags & G_PARAM_CONSTRUCT) != 0; + giprop->construct_only = (properties[i]->flags & G_PARAM_CONSTRUCT_ONLY) != 0; } } |