aboutsummaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-13 14:53:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-14 12:43:16 -0700
commitdc9d0e23e5d158ea4775021b2f629e7f90b5377c (patch)
tree9b3719c76116ee83a5d87962f3f088bb20289d9c /display-gtk.h
parent27a505e579057596ab10f7381c471b870ce86f87 (diff)
downloadsubsurface-dc9d0e23e5d158ea4775021b2f629e7f90b5377c.tar.gz
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>
Diffstat (limited to 'display-gtk.h')
-rw-r--r--display-gtk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/display-gtk.h b/display-gtk.h
index 4ce05468c..3043c873b 100644
--- a/display-gtk.h
+++ b/display-gtk.h
@@ -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,