Revert scanner fix in 64f3832
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 27 Jun 2012 22:02:26 +0000 (18:02 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 27 Jun 2012 22:13:11 +0000 (18:13 -0400)
This is incorrect -- the type name that's passed to the function
should contain a prefix. This fixes error domains for GLib errors.
Don't revert doc changes or test additions.

giscanner/maintransformer.py

index 355158b..850d242 100644 (file)
@@ -901,7 +901,7 @@ the ones that failed to resolve removed."""
             if not isinstance(enum, ast.Enum):
                 continue
             type_name = enum.ctype
-            uscored = to_underscores_noprefix(type_name).lower()
+            uscored = to_underscores(type_name).lower()
 
             uscore_enums[uscored] = enum