summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTommi Komulainen <tommi.komulainen@iki.fi>2008-10-17 14:59:07 +0000
committerTommi Komulainen <tko@src.gnome.org>2008-10-17 14:59:07 +0000
commit38a41b8e39d771f9936c9a0eba7d114cc6082d69 (patch)
tree5738e78be8f8ae2d64b688e0a73ecf464f7ac8b0 /tools
parentcaf97d582f8f4a8653d8a4dc06524dd448bf5e26 (diff)
downloadgobject-introspection-38a41b8e39d771f9936c9a0eba7d114cc6082d69.tar.gz
Bug 556732 – generate gir files consistently
2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi> Bug 556732 – generate gir files consistently * tools/generate.c (write_callable_info): write 'direction' attribute only if other than 'in' to be consistent with girwriter.py * tests/boxed.gir: * tests/object.gir: remove direction="in" which is the default svn path=/trunk/; revision=744
Diffstat (limited to 'tools')
-rw-r--r--tools/generate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/generate.c b/tools/generate.c
index fa7dd46b..52c70642 100644
--- a/tools/generate.c
+++ b/tools/generate.c
@@ -432,20 +432,17 @@ write_callable_info (const gchar *namespace,
g_assert_not_reached ();
}
- xml_printf (file, " direction=\"");
switch (g_arg_info_get_direction (arg))
{
case GI_DIRECTION_IN:
- xml_printf (file, "in");
break;
case GI_DIRECTION_OUT:
- xml_printf (file, "out");
+ xml_printf (file, " direction=\"out\"");
break;
case GI_DIRECTION_INOUT:
- xml_printf (file, "inout");
+ xml_printf (file, " direction=\"inout\"");
break;
}
- xml_printf (file, "\"");
if (g_arg_info_may_be_null (arg))
xml_printf (file, " null-ok=\"1\"");