diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-04-30 12:49:19 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-04-30 12:49:19 +0100 |
commit | f2a1ea5e9e59861b038a708b421e36564afe42a5 (patch) | |
tree | 0b54f56f5d5e0a391b17f9e6fdca8f18951ab5a9 /tools | |
parent | 11c464d3c4bc893762daad7042d7b7bff5fe651b (diff) |
fd.o #26211: glib-interfaces-gen.py: generate tokens correctly, with '/'
Diffstat (limited to 'tools')
-rw-r--r-- | tools/glib-interfaces-gen.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/glib-interfaces-gen.py b/tools/glib-interfaces-gen.py index 2321aac3..ac1f933d 100644 --- a/tools/glib-interfaces-gen.py +++ b/tools/glib-interfaces-gen.py @@ -120,10 +120,10 @@ GQuark /** * %(TOKEN_PREFIX)s_%(TOKEN_UC)s: * - * The fully-qualified contact attribute token name "%(name)s.%(prop)s" + * The fully-qualified contact attribute token name "%(name)s/%(prop)s" */ #define %(TOKEN_PREFIX)s_%(TOKEN_UC)s \\ -"%(name)s.%(prop)s" +"%(name)s/%(prop)s" """ % {'TOKEN_PREFIX' : (self.prefix + 'TOKEN_' + \ parent_name).upper().replace('/', ''), 'TOKEN_UC': prop.getAttributeNS(None, "name").upper().replace("-", "_").replace(".", "_"), @@ -139,10 +139,10 @@ GQuark /** * %(TOKEN_PREFIX)s_%(TOKEN_UC)s: * - * The fully-qualified capability token name "%(name)s.%(prop)s" + * The fully-qualified capability token name "%(name)s/%(prop)s" */ #define %(TOKEN_PREFIX)s_%(TOKEN_UC)s \\ -"%(name)s.%(prop)s" +"%(name)s/%(prop)s" """ % {'TOKEN_PREFIX' : (self.prefix + 'TOKEN_' + \ parent_name).upper().replace('/', ''), 'TOKEN_UC': prop.getAttributeNS(None, "name").upper().replace("-", "_").replace(".", "_"), |