if (OS.gtk_tree_view_get_expander_column (parentHandle) == column) {
if (OS.GTK_VERSION < OS.VERSION (2, 8, 18) && OS.gtk_tree_view_get_expander_column (parentHandle) == column) {
public Rectangle getImageBounds (int index) {	// TODO fully test on early and later versions of GTK	checkWidget ();	if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);	int /*long*/ parentHandle = parent.handle;	int /*long*/ column = 0;	if (index >= 0 && index < parent.getColumnCount ()) {		column = parent.columns [index].handle;	} else {		column = OS.gtk_tree_view_get_column (parentHandle, index);	}	if (column == 0) return new Rectangle (0, 0, 0, 0);	int /*long*/ pixbufRenderer = parent.getPixbufRenderer (column);	if (pixbufRenderer == 0)  return new Rectangle (0, 0, 0, 0);	GdkRectangle rect = new GdkRectangle ();	int /*long*/ path = OS.gtk_tree_model_get_path (parent.modelHandle, handle);	OS.gtk_widget_realize (parentHandle);	OS.gtk_tree_view_get_cell_area (parentHandle, path, column, rect);	OS.gtk_tree_path_free (path);		if (OS.gtk_tree_view_get_expander_column (parentHandle) == column) {		int [] buffer = new int [1];		OS.gtk_widget_style_get (parentHandle, OS.expander_size, buffer, 0);		rect.x += buffer [0] + TreeItem.EXPANDER_EXTRA_PADDING;		rect.width -= buffer [0] + TreeItem.EXPANDER_EXTRA_PADDING;		//OS.gtk_widget_style_get (parentHandle, OS.horizontal_separator, buffer, 0);		//int horizontalSeparator = buffer[0];		//rect.x += horizontalSeparator;	}		/*	* The OS call gtk_cell_renderer_get_size() provides the width of image to be drawn	* by the cell renderer.  If there is no image in the cell, the width is zero.  If the table contains	* images of varying widths, gtk_cell_renderer_get_size() will return the width of the image, 	* not the width of the area in which the image is drawn.	* New API was added in GTK 2.1.3 for determining the full width of the renderer area.	* For earlier versions of GTK, the result is only correct if all rows have images of the same	* width.	*/	if (OS.GTK_VERSION >= OS.VERSION (2, 1, 3)) {		int [] x = new int [1], w = new int[1];		OS.gtk_tree_view_column_cell_get_position (column, pixbufRenderer, x, w);		rect.x += x [0];		rect.width = w [0];	} else {		int [] w = new int [1];		OS.gtk_tree_view_column_cell_set_cell_data (column, parent.modelHandle, handle, false, false);		OS.gtk_cell_renderer_get_size (pixbufRenderer, parentHandle, null, null, null, w, null);		rect.width = w [0];	}	return new Rectangle (rect.x, rect.y, rect.width, rect.height + 1);}