summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@litl.com>2011-08-13 10:35:13 -0300
committerJohan Dahlin <jdahlin@litl.com>2011-08-13 11:10:21 -0300
commita616479d5508fcf42fbfddcda543cc96f2130516 (patch)
tree0634a823305aa938d4e195a3e54c0fa83bff6f0f /giscanner/ast.py
parent2dc8a2cb325eaab7b4b229c49228c4e6aac32747 (diff)
downloadgobject-introspection-a616479d5508fcf42fbfddcda543cc96f2130516.tar.gz
Add signal flags
This adds all GSignalFlags into the gir. https://bugzilla.gnome.org/show_bug.cgi?id=656457
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index bd56aef3..bf1ab976 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -321,6 +321,12 @@ PARAM_TRANSFER_NONE = 'none'
PARAM_TRANSFER_CONTAINER = 'container'
PARAM_TRANSFER_FULL = 'full'
+SIGNAL_FIRST = 'first'
+SIGNAL_LAST = 'last'
+SIGNAL_CLEANUP = 'cleanup'
+SIGNAL_MUST_COLLECT = 'must-collect'
+
+
class Namespace(object):
def __init__(self, name, version,
identifier_prefixes=None,
@@ -858,8 +864,15 @@ class Boxed(Node, Registered):
class Signal(Callable):
- def __init__(self, name, retval, parameters):
+ def __init__(self, name, retval, parameters, when="first",
+ no_recurse=False, detailed=False, action=False,
+ no_hooks=False):
Callable.__init__(self, name, retval, parameters, False)
+ self.when = when
+ self.no_recurse = no_recurse
+ self.detailed = detailed
+ self.action = action
+ self.no_hooks = no_hooks
class Class(Node, Registered):