prefix for constants have an underscore, so remove them as if they were
authorJohan Bilien <jobi@via.ecp.fr>
Sun, 12 Oct 2008 21:11:18 +0000 (21:11 +0000)
committerJohan Bilien <jobi@src.gnome.org>
Sun, 12 Oct 2008 21:11:18 +0000 (21:11 +0000)
2008-10-12  Johan Bilien  <jobi@via.ecp.fr>

* giscanner/transformer.py: prefix for constants have an underscore,
so remove them as if they were functions, not objects.

svn path=/trunk/; revision=694

ChangeLog
giscanner/transformer.py

index 329078b..ac946ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-12  Johan Bilien  <jobi@via.ecp.fr>
+
+       * giscanner/transformer.py: prefix for constants have an underscore,
+       so remove them as if they were functions, not objects.
+
 2008-10-12  Johan Bilien  <jobi@via.ecp.fr>
 
        * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
index ea89b33..987221b 100644 (file)
@@ -460,7 +460,7 @@ class Transformer(object):
 
     def _create_const(self, symbol):
         name = self._remove_prefix(symbol.ident)
-        name = self.strip_namespace_object(name)
+        name = self._strip_namespace_func(name)
         if symbol.const_string is None:
             type_name = 'int'
             value = symbol.const_int