OS.g_signal_connect_closure (bufferHandle, OS.insert_text, display.closures [INSERT_TEXT], false);
OS.g_signal_connect_closure (bufferHandle, OS.insert_text, display.closures [TEXT_BUFFER_INSERT_TEXT], false);
void hookEvents () {	super.hookEvents();	if ((style & SWT.SINGLE) != 0) {		OS.g_signal_connect_closure (handle, OS.changed, display.closures [CHANGED], true);		OS.g_signal_connect_closure (handle, OS.insert_text, display.closures [INSERT_TEXT], false);		OS.g_signal_connect_closure (handle, OS.delete_text, display.closures [DELETE_TEXT], false);		OS.g_signal_connect_closure (handle, OS.activate, display.closures [ACTIVATE], false);		OS.g_signal_connect_closure (handle, OS.grab_focus, display.closures [GRAB_FOCUS], false);	} else {		OS.g_signal_connect_closure (bufferHandle, OS.changed, display.closures [CHANGED], false);		OS.g_signal_connect_closure (bufferHandle, OS.insert_text, display.closures [INSERT_TEXT], false);		OS.g_signal_connect_closure (bufferHandle, OS.delete_range, display.closures [DELETE_RANGE], false);	}	int /*long*/ imContext = imContext ();	if (imContext != 0) {		OS.g_signal_connect_closure (imContext, OS.commit, display.closures [COMMIT], false);		int id = OS.g_signal_lookup (OS.commit, OS.gtk_im_context_get_type ());		int mask =  OS.G_SIGNAL_MATCH_DATA | OS.G_SIGNAL_MATCH_ID;		OS.g_signal_handlers_block_matched (imContext, mask, id, 0, 0, 0, handle);	}}