int headerHeight = parent.getHeaderHeight (); return new Rectangle (rect.x, rect.y + headerHeight, w [0], rect.height);
return new Rectangle (rect.x, rect.y, w [0], rect.height);
public Rectangle getImageBounds (int index) {	checkWidget ();	int parentHandle = parent.handle;	int column = OS.gtk_tree_view_get_column (parentHandle, index);	if (column == 0) return new Rectangle (0, 0, 0, 0);	int list = OS.gtk_tree_view_column_get_cell_renderers (column);	if (list == 0) return new Rectangle (0, 0, 0, 0);	int count = OS.g_list_length (list);	int pixbufRenderer = 0, i = 0;	while (i < count) {		int renderer = OS.g_list_nth_data (list, i);		if (OS.GTK_IS_CELL_RENDERER_PIXBUF (renderer)) {			pixbufRenderer = renderer;			break;		}		i++;	}	OS.g_list_free (list);		if (pixbufRenderer == 0)  return new Rectangle (0, 0, 0, 0);	GdkRectangle rect = new GdkRectangle ();	int 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);	/*	* 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.	*/	int [] w = new int[1];	if (OS.gtk_major_version () * 100 + OS.gtk_minor_version ()  * 10 + OS.gtk_micro_version () < 213) {		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);	} else {		OS.gtk_tree_view_column_cell_get_position (column, pixbufRenderer, null, w);	}	int headerHeight = parent.getHeaderHeight ();	return new Rectangle (rect.x, rect.y + headerHeight, w [0], rect.height);}