[gobject-introspection] Docbookwriter: signal flags
- From: Laszlo Pandy <lpandy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Docbookwriter: signal flags
- Date: Wed, 17 Aug 2011 07:38:47 +0000 (UTC)
commit e9b0c8013dd15d643e46dd6e763585d5fe1b5b45
Author: Laszlo Pandy <lpandy src gnome org>
Date: Wed Aug 17 09:38:24 2011 +0200
Docbookwriter: signal flags
giscanner/docbookwriter.py | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/docbookwriter.py b/giscanner/docbookwriter.py
index 5a74099..d4701e6 100644
--- a/giscanner/docbookwriter.py
+++ b/giscanner/docbookwriter.py
@@ -250,7 +250,24 @@ class DocBookFormatter(object):
def render_signal(self, signal, link=False):
sig_name = '"%s"' % signal.name
- flags = ["TODO: signal flags not in GIR currently"]
+
+ flags = []
+ if signal.when == "first":
+ flags.append("Run First")
+ elif signal.when == "last":
+ flags.append("Run Last")
+ elif signal.when == "cleanup":
+ flags.append("Cleanup")
+
+ if signal.no_recurse:
+ flags.append('No Recursion')
+ if signal.detailed:
+ flags.append("Has Details")
+ if signal.action:
+ flags.append("Action")
+ if signal.no_hooks:
+ flags.append("No Hooks")
+
self._render_prop_or_signal(sig_name, "", flags)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]