Reduce warning noise
authorColin Walters <walters@src.gnome.org>
Sat, 30 Aug 2008 20:12:45 +0000 (20:12 +0000)
committerColin Walters <walters@src.gnome.org>
Sat, 30 Aug 2008 20:12:45 +0000 (20:12 +0000)
* giscanner/glibtransformer.py: Reduce warning noise

svn path=/trunk/; revision=539

giscanner/glibtransformer.py

index 1e03eb68efffece6d2ac12804f7688aad9179470..48bdf4923b2b3dcef9333690c304e91d8eaefd99 100644 (file)
@@ -217,8 +217,6 @@ class GLibTransformer(object):
 
     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 @@ class GLibTransformer(object):
         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 @@ class GLibTransformer(object):
         # 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