if (image != null && 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);  int [] w = new int [1]; int  pixbufRenderer = parent.getPixbufRenderer(column); OS.gtk_tree_view_column_cell_get_position (column, pixbufRenderer, null, w); if (w[0] < image.getBounds().width) {  int  style = OS.gtk_widget_get_modifier_style (parentHandle); OS.gtk_widget_modify_style (parentHandle, style); } } }
public void setImage (int index, Image image) {	checkWidget ();	if (image != null && image.isDisposed()) {		error(SWT.ERROR_INVALID_ARGUMENT);	}	int count = Math.max (1, parent.getColumnCount ());	if (0 > index || index > count - 1) return;	int /*long*/ pixbuf = 0;	if (image != null) {		ImageList imageList = parent.imageList;		if (imageList == null) imageList = parent.imageList = new ImageList ();		int imageIndex = imageList.indexOf (image);		if (imageIndex == -1) imageIndex = imageList.add (image);		pixbuf = imageList.getPixbuf (imageIndex);	}	int modelIndex = parent.columnCount == 0 ? Tree.FIRST_COLUMN : parent.columns [index].modelIndex;	OS.gtk_tree_store_set (parent.modelHandle, handle, modelIndex + Tree.CELL_PIXBUF, pixbuf, -1);	cached = true;}