if (string == null) { OS.g_free (iter); error (SWT.ERROR_ITEM_NOT_ADDED); }
public void setItems (String [] items) {	checkWidget();	if (items == null) error (SWT.ERROR_NULL_ARGUMENT);	int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);	OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);	OS.gtk_list_store_clear (modelHandle);	OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);	int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ());	if (iter == 0) error (SWT.ERROR_ITEM_NOT_ADDED);	for (int i=0; i<items.length; i++) {		String string = items [i];		if (string == null) {			OS.g_free (iter);			error (SWT.ERROR_ITEM_NOT_ADDED);		}		byte [] buffer = Converter.wcsToMbcs (null, string, true);		OS.gtk_list_store_append (modelHandle, iter);		OS.gtk_list_store_set (modelHandle, iter, TEXT_COLUMN, buffer, -1);	}	OS.g_free (iter);}