summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@litl.com>2011-08-13 11:21:05 -0300
committerJohan Dahlin <jdahlin@litl.com>2011-08-13 11:21:05 -0300
commitd7a2b1dc90bd61bcd0908c3fd8b124bb84ecc862 (patch)
treed151b1c18fdc4e334515f66725ecd8e853b6b00a /giscanner/ast.py
parent0d76fc0c49bbe4f1b0d1490e8e41d02db7c4bf4a (diff)
downloadgobject-introspection-d7a2b1dc90bd61bcd0908c3fd8b124bb84ecc862.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 252c86b4..2b1c6f58 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -323,6 +323,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,
@@ -868,8 +874,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):