Bug 552390: Handle capitialization like "DBus" more robustly
authorColin Walters <walters@src.gnome.org>
Sat, 20 Sep 2008 00:03:38 +0000 (00:03 +0000)
committerColin Walters <walters@src.gnome.org>
Sat, 20 Sep 2008 00:03:38 +0000 (00:03 +0000)
commitd0a076c56818fa6e8c4c1a660c6ef6ef11cbc5fb
tree3509edb63df60e1ae95d139edcfa0b990c232a65
parente88553deea8c212b66b76b69b10fcb5824150f82
Bug 552390: Handle capitialization like "DBus" more robustly

The to_underscores function was designed for use against prefixed
names; we need a separate function which will convert names like
DBusFoo into dbus_foo, not d_bus_foo.

svn path=/trunk/; revision=621
giscanner/glibtransformer.py
giscanner/utils.py
tests/scanner/foo-expected.gir
tests/scanner/foo.c
tests/scanner/foo.h