summaryrefslogtreecommitdiff
path: root/src/Gtk/Signal.dcl
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gtk/Signal.dcl')
-rw-r--r--src/Gtk/Signal.dcl14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Gtk/Signal.dcl b/src/Gtk/Signal.dcl
new file mode 100644
index 0000000..10e6ef7
--- /dev/null
+++ b/src/Gtk/Signal.dcl
@@ -0,0 +1,14 @@
+definition module Gtk.Signal
+
+from Gtk.State import :: State, :: StateT, :: Identity, :: GtkState
+from Gtk.Widgets import class gtkWidget
+
+:: GSignalHandlerFunction :== State GtkState ()
+
+:: GSignalHandler
+ = DestroyHandler !GSignalHandlerFunction
+
+:: GSignalHandlerInternal
+ = GSHI_Void !GSignalHandlerFunction
+
+installSignalHandler :: !w !GSignalHandler -> State GtkState () | gtkWidget w