diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-01-07 17:15:52 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-01-07 17:18:37 +0100 |
commit | d6c8a24095de9ab26d9d5d22974027a31918013a (patch) | |
tree | aac76defb7c959d7c8459307db718bbf08b6b905 /giscanner/maintransformer.py | |
parent | f132cc5dfb232815f5fefc57fcf565cad51ff1dc (diff) | |
download | gobject-introspection-d6c8a24095de9ab26d9d5d22974027a31918013a.tar.gz |
scanner: Make sure that vfuncs made to the GIR
* don't skip those associated to a signal
* don't warn if it doesn't have an invoker
https://bugzilla.gnome.org/show_bug.cgi?id=637215
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index bafff607..0868d785 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -1035,10 +1035,6 @@ method or constructor of some type.""" if isinstance(field, ast.Field): field.writable = False - # Loop through fields to determine which are virtual - # functions and which are signal slots by - # assuming everything that doesn't share a name - # with a known signal is a virtual slot. for field in class_struct.fields: if not isinstance(field.anonymous_node, ast.Callback): continue @@ -1049,15 +1045,6 @@ method or constructor of some type.""" firstparam_type = callback.parameters[0].type if firstparam_type != node_type: continue - # Also double check we don't have a signal with this - # name. - matched_signal = False - for signal in node.signals: - if signal.name.replace('-', '_') == callback.name: - matched_signal = True - break - if matched_signal: - continue vfunc = ast.VFunction.from_callback(callback) vfunc.instance_parameter = callback.parameters[0] vfunc.inherit_file_positions(callback) |