diff options
author | <robert.mcqueen@collabora.co.uk> | 2005-12-08 01:14:48 +0000 |
---|---|---|
committer | <robert.mcqueen@collabora.co.uk> | 2005-12-08 01:14:48 +0000 |
commit | 1e6e4b43621fb4b742bdee4b444b00498c00a83e (patch) | |
tree | 513c55cea5ecd7489debf36ff79afc837c6137c4 /tools | |
parent | 4244a6568d78150c11189fb46638f650ee32539f (diff) |
fix FOO_BAR_TYPE_BAZ to appear as FOO_TYPE_BAR_BAZ
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gengobject.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gengobject.py b/tools/gengobject.py index 34d4d7a5..01c84bd2 100644 --- a/tools/gengobject.py +++ b/tools/gengobject.py @@ -240,7 +240,7 @@ if __name__ == '__main__': body.write(" LAST_SIGNAL\n};\n\n") body.write("static guint signals[LAST_SIGNAL] = {0};\n\n") - gtypename = '_TYPE_'.join(prefix.upper().rsplit('_',1)) + gtypename = '_TYPE_'.join(prefix.upper().split('_',1)) body.write("""/* private structure */ typedef struct _%(classname)sPrivate %(classname)sPrivate; @@ -340,7 +340,7 @@ void } -""" % {'classname':classname,'prefix':prefix, 'uprefix':prefix.upper(), 'gtypename':gtypename}) +""" % {'classname':classname,'prefix':prefix, 'uprefix':prefix.upper()}) for method in methods: dbus_method_name = method.getAttributeNode("name").nodeValue |