mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Maintain selected rows when switching between list model and tree model
We keep track of the DIVE_INDEX of all selected dives and simply re-select those dives after changing model (date based sort or sort by other column). There are a few TODOs left. We lose the sort direction (ascending / descending) when switching models. We also don't correctly deal with the user selecting summary rows in the tree model. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
27a505e579
commit
dc9d0e23e5
3 changed files with 62 additions and 6 deletions
|
@ -72,7 +72,7 @@ extern GtkWidget *dive_list_create(void);
|
|||
|
||||
unsigned int amount_selected;
|
||||
|
||||
extern void process_selected_dives(GList *, GtkTreeModel *);
|
||||
extern void process_selected_dives(GList *, int *, GtkTreeModel *);
|
||||
|
||||
typedef void (*data_func_t)(GtkTreeViewColumn *col,
|
||||
GtkCellRenderer *renderer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue