mirror of https://github.com/GNOME/gimp.git
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:
parent
07ecd55b1c
commit
bc51e8f98c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue