From e93e471ded53942c11052a6acf67d281bf7f5302 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 30 Aug 2008 20:12:45 +0000 Subject: [PATCH] Reduce warning noise * giscanner/glibtransformer.py: Reduce warning noise svn path=/trunk/; revision=539 --- giscanner/glibtransformer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py index 1e03eb68..48bdf492 100644 --- a/giscanner/glibtransformer.py +++ b/giscanner/glibtransformer.py @@ -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 -- 2.34.1