Permalink
Browse files

Disconnect handlers

  • Loading branch information...
1 parent dec815b commit 7a3dad2f973c495ba4ff1138d355748b439f4f67 Amos Wenger committed Dec 19, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 source/gtk/_GObject.ooc
View
@@ -58,6 +58,10 @@ _GObject: cover from _GObjectStruct* {
g_signal_connect_swapped(this, signalName, GTK_SIGNAL_FUNC(keyEventsThunk), closure)
}
+ disconnect: func (handlerID: GULong) {
+ g_signal_handler_disconnect(this, handlerID)
+ }
+
}
keyEventsThunk: func (userData: Closure*, event: Pointer, object: _GObject) -> Bool {
@@ -79,3 +83,5 @@ GTK_OBJECT: extern func (_GObject) -> _GObject
GTK_SIGNAL_FUNC: extern func (Pointer) -> Pointer
g_signal_connect: extern func (_GObject, CString, Pointer, Pointer) -> GULong
g_signal_connect_swapped: extern func (_GObject, CString, Pointer, Pointer) -> GULong
+g_signal_handler_disconnect: extern func (_GObject, GULong)
+

0 comments on commit 7a3dad2

Please sign in to comment.