gtk_list_store_remove selects successor node
Steps to reproduce
- Create a
GtkTreeView
with selection modeGTK_SELECTION_SINGLE
- Unselect all rows
- Remove a tree row with
gtk_list_store_remove
Demo application (modified version of gtk3-demo > Tree View > Editable Cells):
-
example-unselect.c (calls
gtk_tree_selection_unselect_all
beforegtk_list_store_remove
) -
example.c(previous example, does not unselect before remove)
Current behavior
The successor row is selected
Expected outcome
The selection should be empty.
Version information
- Gtk 3.24.14
- Arch Linux
Also compiled same Gtk version from source with meson --buildtype=debug --prefix=$PREFIX
.
Additional information
Also affects drag-and-drop because it works by removing and re-inserting rows.
Downstream Inkscape bugs:
Edited by Thomas Holder