mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 10:07:13 +02:00
gdbus-codegen: Use G_TYPE_STRV/gchar** for GVariant type 'ao'
This is possible now that we have better support for object path arrays, see http://git.gnome.org/browse/glib/commit/?id=19878998bc386db78614f1c92ff8524a81479c7b Note that this breaks the ABI of generated code but since gdbus-codegen(1) has never yet been in a stable GLib release, this is fine. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -1096,6 +1096,8 @@ class CodeGenerator:
|
||||
s = 'g_param_spec_string ("%s", "%s", "%s", NULL'%(p.name_hyphen, p.name, p.name)
|
||||
elif p.arg.signature == 'as':
|
||||
s = 'g_param_spec_boxed ("%s", "%s", "%s", G_TYPE_STRV'%(p.name_hyphen, p.name, p.name)
|
||||
elif p.arg.signature == 'ao':
|
||||
s = 'g_param_spec_boxed ("%s", "%s", "%s", G_TYPE_STRV'%(p.name_hyphen, p.name, p.name)
|
||||
elif p.arg.signature == 'aay':
|
||||
s = 'g_param_spec_boxed ("%s", "%s", "%s", G_TYPE_STRV'%(p.name_hyphen, p.name, p.name)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user