if (parent.columnCount == 0) { int parentHandle = parent.handle; int  column = OS.gtk_tree_view_get_column (parentHandle, 0); if (OS.gtk_tree_view_column_get_sizing (column) == OS.GTK_TREE_VIEW_COLUMN_FIXED) { parent.setScrollWidth (column, this); } }
public void setText (int index, String string) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	int count = Math.max (1, parent.getColumnCount ());	if (0 > index || index > count - 1) return;	byte[] buffer = Converter.wcsToMbcs (null, string, true);	int modelIndex = parent.columnCount == 0 ? Table.FIRST_COLUMN : parent.columns [index].modelIndex;	OS.gtk_list_store_set (parent.modelHandle, handle, modelIndex + Table.CELL_TEXT, buffer, -1);	cached = true;}