*
*/ if ((parent.style & SWT.VIRTUAL) != 0) { if (OS.GTK_VERSION >= OS.VERSION (2, 3, 2) && OS.GTK_VERSION < OS.VERSION (2, 6, 3)) { if (parent.columnCount == 0) { redraw (); } } } /*
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);	/*	* Bug in GTK.  When using fixed-height-mode,	* row changes do not cause the row to be repainted.  The fix is to	* invalidate the row when the image changes.	* 	* Bug in GTK.  When using fixed-height-mode, GTK does not recalculate the cell renderer width	* when the image is changed in the model.  The fix is to force it to recalculate the width if	* more space is required.	*/	if ((parent.style & SWT.VIRTUAL) != 0) {		if (OS.GTK_VERSION >= OS.VERSION (2, 3, 2)) {			if (parent.columnCount == 0) {				redraw ();			}			if (image != null) {				int /*long*/parentHandle = parent.handle;				int /*long*/ column = OS.gtk_tree_view_get_column (parentHandle, index);				int [] w = new int [1];				int /*long*/ pixbufRenderer = parent.getPixbufRenderer(column);				OS.gtk_tree_view_column_cell_get_position (column, pixbufRenderer, null, w);				if (w[0] < image.getBounds().width) {					/*					 * There is no direct way to clear the cell renderer width so we					 * are relying on the fact that it is done as part of modifying					 * the style.					 */					int /*long*/ style = OS.gtk_widget_get_modifier_style (parentHandle);					OS.gtk_widget_modify_style (parentHandle, style);				}			} 		}	}	cached = true;}