Toggle cell on a sorted treeviewcolumn loses selection
- From: Nicolas SOUBEIRAN <nicolas soubeiran gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Toggle cell on a sorted treeviewcolumn loses selection
- Date: Sat, 15 Aug 2009 10:28:40 +0200
Hi all,
I have a weird case on a treeview that displays a sortable column with
an activatable toggle cell renderer.
If the column is sorted, when one activates the toggle, the tree is
re-sorted (normal) but the selected row is changed (unexpected).
I investigated and I found that when clicking on a toggle cell renderer,
the "activate" callback is send which update the treemodel.
After re-ordering, the function gtk_tree_view_button_press is called.
This function checks which row is under the cursor and selects it.
I am looking for a way to trap this event to keep the selection on the
"activated" row (like when one edits a text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]