[gobject-introspection] If needed, convert from camelcase to underscores when stripping the prefix of constants



commit f2dca4a1d78e83769a87a1a519568ac43f82275a
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Tue Apr 13 18:56:34 2010 -0400

    If needed, convert from camelcase to underscores when stripping the prefix of constants
    
    https://bugzilla.gnome.org/show_bug.cgi?id=615694

 giscanner/transformer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index bbcabe4..b59c20f 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -509,7 +509,7 @@ class Transformer(object):
         if (symbol.source_filename is None or
             not symbol.source_filename.endswith('.h')):
             return None
-        name = self.remove_prefix(symbol.ident)
+        name = self._strip_namespace_func(symbol.ident)
         if symbol.const_string is not None:
             type_name = 'utf8'
             value = symbol.const_string



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]