mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 16:38:54 +02: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:
committed by
Philip Withnall
parent
3bddeae0fa
commit
66a5209b6c
@@ -432,20 +432,17 @@ write_callable_info (const gchar *namespace,
|
|||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
xml_printf (file, " direction=\"");
|
|
||||||
switch (g_arg_info_get_direction (arg))
|
switch (g_arg_info_get_direction (arg))
|
||||||
{
|
{
|
||||||
case GI_DIRECTION_IN:
|
case GI_DIRECTION_IN:
|
||||||
xml_printf (file, "in");
|
|
||||||
break;
|
break;
|
||||||
case GI_DIRECTION_OUT:
|
case GI_DIRECTION_OUT:
|
||||||
xml_printf (file, "out");
|
xml_printf (file, " direction=\"out\"");
|
||||||
break;
|
break;
|
||||||
case GI_DIRECTION_INOUT:
|
case GI_DIRECTION_INOUT:
|
||||||
xml_printf (file, "inout");
|
xml_printf (file, " direction=\"inout\"");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
xml_printf (file, "\"");
|
|
||||||
|
|
||||||
if (g_arg_info_may_be_null (arg))
|
if (g_arg_info_may_be_null (arg))
|
||||||
xml_printf (file, " null-ok=\"1\"");
|
xml_printf (file, " null-ok=\"1\"");
|
||||||
|
Reference in New Issue
Block a user