gobject-introspection r539 - trunk/giscanner



Author: walters
Date: Sat Aug 30 20:12:45 2008
New Revision: 539
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=539&view=rev

Log:
Reduce warning noise

	* giscanner/glibtransformer.py: Reduce warning noise


Modified:
   trunk/giscanner/glibtransformer.py

Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py	(original)
+++ trunk/giscanner/glibtransformer.py	Sat Aug 30 20:12:45 2008
@@ -217,8 +217,6 @@
 
     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
@@ -229,6 +227,9 @@
         symbol = func.symbol
         if not symbol.endswith('_get_type'):
             return False
+        if self._namespace_name == 'GLib':
+            # No GObjects in GLib
+            return False
         # GType *_get_type(void)
         # This is a bit fishy, why do we need all these aliases?
         if func.retval.type.name not in ['Type',
@@ -285,6 +286,9 @@
         # already
         if func.symbol.endswith('_get_type'):
             return None
+        if self._namespace_name == 'GLib':
+            # No GObjects in GLib
+            return None
 
         if not is_method:
             target_arg = func.retval



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