mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
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:
parent
2e1e97305f
commit
d743ecf82e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user