Handle clicks in indentation area

For this case, we want to set focus on the first cell in the column.
This commit is contained in:
Kristian Rietveld 2010-12-12 17:32:59 +01:00
parent 2e1e97305f
commit d743ecf82e

View File

@ -1479,6 +1479,14 @@ _gtk_tree_view_column_get_cell_at_pos (GtkTreeViewColumn *column,
GtkCellRenderer *match = NULL;
GtkTreeViewColumnPrivate *priv = column->priv;
if (x < cell_area->x)
{
/* This can happen when we click in the "indentation". In this
* case, we set x to cell_area->x, the start of the first cell.
*/
x = cell_area->x;
}
match = gtk_cell_area_get_cell_at_position (priv->cell_area,
priv->cell_area_context,
priv->tree_view,