[Telepathy-commits] [telepathy-glib/master] glib-gtypes-generator.py: fix generation of complex types

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Jan 30 09:20:27 PST 2009


---
 tools/glib-gtypes-generator.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/glib-gtypes-generator.py b/tools/glib-gtypes-generator.py
index 2b7ea31..29debf1 100644
--- a/tools/glib-gtypes-generator.py
+++ b/tools/glib-gtypes-generator.py
@@ -258,19 +258,19 @@ class GTypesGenerator(object):
                 self.body.write('    t = dbus_g_type_get_collection ('
                             '"GPtrArray", '
                             '%stype_dbus_hash_%s ());\n' %
-                            (self.prefix_, self.need_other_arrays[sig][2:-1]))
+                            (self.prefix_, escape_as_identifier(sig[2:-1])))
             elif sig[:2] == 'a(' and sig[-1:] == ')':
                 # array of arrays of struct
                 self.body.write('    t = dbus_g_type_get_collection ('
                             '"GPtrArray", '
                             '%stype_dbus_array_%s ());\n' %
-                            (self.prefix_, self.need_other_arrays[sig][2:-1]))
+                            (self.prefix_, escape_as_identifier(sig[2:-1])))
             elif sig[:1] == 'a':
                 # array of arrays of non-struct
                 self.body.write('    t = dbus_g_type_get_collection ('
                             '"GPtrArray", '
                             '%stype_dbus_array_of_%s ());\n' %
-                            (self.prefix_, self.need_other_arrays[sig][1:]))
+                            (self.prefix_, escape_as_identifier(sig[1:])))
             else:
                 raise AssertionError("array of '%s' not supported" % sig)
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list