Fixes #640741 - gtk_tree_view_column_get_cell_position() seems to be broken
It is supposed to return the offset within the column, but returned
the offset within the tree, changed by allocation.x of the column's
button (which I don't really unserstand and was clearly not working).
&allocation);
if (x_offset)
- {
- GdkRectangle button_allocation;
+ *x_offset = allocation.x - cell_area.x;
- /* Retrieve column offset */
- gtk_widget_get_allocation (priv->button, &button_allocation);
- *x_offset = allocation.x - button_allocation.x;
- }
if (width)
*width = allocation.width;