OS.g_signal_handlers_block_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);
OS.g_signal_handlers_block_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, TEXT_BUFFER_INSERT_TEXT);
public void setText (String string) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	/*	* Feature in gtk.  When text is set in gtk, separate events are fired for the deletion and 	* insertion of the text.  This is not wrong, but is inconsistent with other platforms.  The	* fix is to block the firing of these events and fire them ourselves in a consistent manner. 	*/	if (hooks (SWT.Verify) || filters (SWT.Verify)) {		string = verifyText (string, 0, getCharCount ());		if (string == null) return;	}	if ((style & SWT.SINGLE) != 0) {		byte [] buffer = Converter.wcsToMbcs (null, string, true);		OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);		OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, DELETE_TEXT);		OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);		OS.gtk_entry_set_text (handle, buffer);		OS.g_signal_handlers_unblock_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);		OS.g_signal_handlers_unblock_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, DELETE_TEXT);		OS.g_signal_handlers_unblock_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);	} else {		byte [] buffer = Converter.wcsToMbcs (null, string, false);		byte [] position =  new byte [ITER_SIZEOF];		OS.g_signal_handlers_block_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);		OS.g_signal_handlers_block_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, DELETE_RANGE);		OS.g_signal_handlers_block_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);		OS.gtk_text_buffer_set_text (bufferHandle, buffer, buffer.length);		OS.g_signal_handlers_unblock_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);		OS.g_signal_handlers_unblock_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, DELETE_RANGE);		OS.g_signal_handlers_unblock_matched (bufferHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);		OS.gtk_text_buffer_get_iter_at_offset (bufferHandle, position, 0);		OS.gtk_text_buffer_place_cursor (bufferHandle, position);		int /*long*/ mark = OS.gtk_text_buffer_get_insert (bufferHandle);		OS.gtk_text_view_scroll_mark_onscreen (handle, mark);	}	sendEvent (SWT.Modify);}