gobject-introspection r445 - in trunk: . giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r445 - in trunk: . giscanner
- Date: Thu, 21 Aug 2008 20:45:22 +0000 (UTC)
Author: walters
Date: Thu Aug 21 20:45:22 2008
New Revision: 445
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=445&view=rev
Log:
2008-08-21 Colin Walters <walters verbum org>
* giscanner/glibtransformer.py: Also try squashing
underscores from namespace, fixes webkit_web_view_new.
Modified:
trunk/ChangeLog
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Thu Aug 21 20:45:22 2008
@@ -115,6 +115,13 @@
def _register_internal_type(self, type_name, node):
self._names.type_names[type_name] = (None, node)
self._uscore_type_names[to_underscores(type_name).lower()] = node
+ # Besides the straight underscore conversion, we also try
+ # removing the underscores from the namespace as a possible C
+ # mapping; e.g. it's webkit_web_view, not web_kit_web_view
+ suffix = self._transformer.strip_namespace_object(type_name)
+ prefix = type_name[:-len(suffix)]
+ no_uscore_prefixed = (prefix + '_' + to_underscores(suffix)).lower()
+ self._uscore_type_names[no_uscore_prefixed] = node
# Helper functions
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]