diff options
author | Dan Winship <danw@src.gnome.org> | 2008-10-02 13:15:09 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2008-10-02 13:15:09 +0000 |
commit | 1ab23b133ad9b48b9f67117f150026ff48daa927 (patch) | |
tree | f6345aac594765a01d82b875c3ebdf6e3f022a5b /giscanner/utils.py | |
parent | 4c510808d875abbc1c5933118e0fb0ac7a2ce9f7 (diff) | |
download | gobject-introspection-1ab23b133ad9b48b9f67117f150026ff48daa927.tar.gz |
Bug 554521: scanner generates wrong names for enum members with
full type name prefix
* giscanner/utils.py (strip_common_prefix): Fix this to strip the
right amount when the entire "first" string is a prefix of
"second"
* tests/scanner/foo.h (FooEnumFullname):
* tests/scanner/foo-expected.gir: test that
svn path=/trunk/; revision=640
Diffstat (limited to 'giscanner/utils.py')
-rw-r--r-- | giscanner/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py index c2f6e5d8..959ed830 100644 --- a/giscanner/utils.py +++ b/giscanner/utils.py @@ -59,5 +59,5 @@ def strip_common_prefix(first, second): second = second.replace('_', '') for i, c in enumerate(first.upper()): if i >= len(second) or c != second[i]: - break - return second[i:] + return second[i:] + return second[i + 1:] |