diff options
author | Johan Dahlin <jdahlin@litl.com> | 2011-08-13 12:45:12 -0300 |
---|---|---|
committer | Johan Dahlin <jdahlin@litl.com> | 2011-08-13 12:45:12 -0300 |
commit | a8b700e2d9c7b63bd351f4194820680f4da3da8a (patch) | |
tree | 83279b00537e93569f942f32d673ab2d0d64baf1 /giscanner/gdumpparser.py | |
parent | d7a2b1dc90bd61bcd0908c3fd8b124bb84ecc862 (diff) | |
download | gobject-introspection-a8b700e2d9c7b63bd351f4194820680f4da3da8a.tar.gz |
Make sure signal works when there isn't one specified
Diffstat (limited to 'giscanner/gdumpparser.py')
-rw-r--r-- | giscanner/gdumpparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py index be25d614..f94917e6 100644 --- a/giscanner/gdumpparser.py +++ b/giscanner/gdumpparser.py @@ -453,7 +453,7 @@ different --identifier-prefix.""" % (xmlnode.attrib['name'], self._namespace.ide rtype = ast.Type.create_from_gtype_name(rctype) return_ = ast.Return(rtype) parameters = [] - when = signal_info.attrib['when'] + when = signal_info.attrib.get('when') no_recurse = signal_info.attrib.get('no-recurse', '0') == '1' detailed = signal_info.attrib.get('detailed', '0') == '1' action = signal_info.attrib.get('action', '0') == '1' |