mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
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
This commit is contained in:
parent
3bddeae0fa
commit
66a5209b6c
@ -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\"");
|
||||
|
Loading…
Reference in New Issue
Block a user