gobject-introspection r535 - trunk/giscanner



Author: walters
Date: Fri Aug 29 23:33:14 2008
New Revision: 535
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=535&view=rev

Log:
Blacklist a few functions that use GError oddly

	* giscanner/glibtransformer.py: Blacklist a few
	functions that use GError oddly


Modified:
   trunk/giscanner/glibtransformer.py

Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py	(original)
+++ trunk/giscanner/glibtransformer.py	Fri Aug 29 23:33:14 2008
@@ -31,6 +31,13 @@
 from .utils import extract_libtool, to_underscores
 
 
+SYMBOL_BLACKLIST = [
+    # These ones break GError conventions
+    'g_simple_async_result_new_from_error',
+    'gtk_print_operation_get_error',
+]
+
+
 class Unresolved(object):
 
     def __init__(self, target):
@@ -207,6 +214,10 @@
         self._add_attribute(enum)
 
     def _parse_function(self, func):
+        if func.symbol in SYMBOL_BLACKLIST:
+            print "WARNING: Skipping blacklisted function: %r" \
+                % (func.symbol, )
+            return
         if self._parse_get_type_function(func):
             return
 



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