diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-01-04 11:35:24 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-01-04 12:15:20 +0000 |
commit | e9fd60d835b37c5a7db9d453b95235d3ac11e724 (patch) | |
tree | f889deb6ff551ebe64c0b68b373c241d07fc6a8a /tools | |
parent | 2a7bb6bef1e5b1abb21103d720af63c3e47cbe74 (diff) |
Update glib-client-marshaller-gen from telepathy-glib master
Diffstat (limited to 'tools')
-rw-r--r-- | tools/glib-client-marshaller-gen.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/glib-client-marshaller-gen.py b/tools/glib-client-marshaller-gen.py index 54447255..cd9823bd 100644 --- a/tools/glib-client-marshaller-gen.py +++ b/tools/glib-client-marshaller-gen.py @@ -31,22 +31,23 @@ class Generator(object): for signal in signals: self.do_signal(signal) - print 'void' - print '%s_register_dbus_glib_marshallers (void)' % self.prefix - print '{' + print('void') + print('%s_register_dbus_glib_marshallers (void)' % self.prefix) + print('{') - all = self.marshallers.keys() + all = list(self.marshallers.keys()) all.sort() for marshaller in all: rhs = self.marshallers[marshaller] - print ' dbus_g_object_register_marshaller (%s,' % marshaller - print ' G_TYPE_NONE, /* return */' + print(' dbus_g_object_register_marshaller (') + print(' g_cclosure_marshal_generic,') + print(' G_TYPE_NONE, /* return */') for type in rhs: - print ' G_TYPE_%s,' % type.replace('VOID', 'NONE') - print ' G_TYPE_INVALID);' + print(' G_TYPE_%s,' % type.replace('VOID', 'NONE')) + print(' G_TYPE_INVALID);') - print '}' + print('}') def types_to_gtypes(types): |