Use the right area for click detection on treeview cells

Use gtk_tree_view_get_cell_area() instead of
gtk_tree_view_get_background_area() because the latter includes things
like expanders, indentation and padding and messes up the x coordinate
of our naive click detection.
This commit is contained in:
Michael Natterer 2009-07-26 14:13:30 +02:00
parent 07ecd55b1c
commit bc51e8f98c
1 changed files with 2 additions and 2 deletions

View File

@ -975,8 +975,8 @@ gimp_container_tree_view_button_press (GtkWidget *widget,
tree_view->priv->dnd_renderer = renderer;
gtk_tree_view_get_background_area (tree_view->view, path,
column, &column_area);
gtk_tree_view_get_cell_area (tree_view->view, path,
column, &column_area);
gtk_tree_view_column_cell_set_cell_data (column,
tree_view->model,