diff options
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index bc795c08..dd20af1e 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -900,7 +900,9 @@ _split_uscored_by_type(text_buffer_try_new) -> (ast.Class(TextBuffer), 'try_new' def _pair_function(self, func): """Check to see whether a toplevel function should be a method or constructor of some type.""" - if func.symbol.endswith('_get_type') or func.symbol.startswith('_'): + if (func.symbol.endswith('_get_type') + or func.symbol.endswith('_get_gtype') + or func.symbol.startswith('_')): return (ns, subsymbol) = self._transformer.split_csymbol(func.symbol) assert ns == self._namespace |