summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-03 11:04:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-03 11:37:09 -0700
commit8677721e85a344e29782cfc2ab838edb8da9215b (patch)
tree0b3094c3ce528773a9b4051bd2fcd622acf4fc56 /divelist.c
parenta6b89b3254adf7c559fe6fb89367cc50c9f41900 (diff)
downloadsubsurface-8677721e85a344e29782cfc2ab838edb8da9215b.tar.gz
Remove the majority of the Gtk related code
- rip all Gtk code from qt-gui.cpp - don't compile Gtk specific files - don't link against Gtk libraries - don't compile modules we don't use at all (yet) - use #if USE_GTK_UI on the remaining files to disable Gtk related parts - disable the non-functional Cochran support while I'm at it Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c
index 58d89d5f6..e22dd331a 100644
--- a/divelist.c
+++ b/divelist.c
@@ -54,6 +54,8 @@
static short dive_list_changed = FALSE;
+short autogroup = FALSE;
+
dive_trip_t *dive_trip_list;
unsigned int amount_selected;
@@ -73,6 +75,13 @@ void dump_selection(void)
}
#endif
+void set_autogroup(gboolean value)
+{
+ /* if we keep the UI paradigm, this needs to toggle
+ * the checkbox on the autogroup menu item */
+ autogroup = value;
+}
+
dive_trip_t *find_trip_by_idx(int idx)
{
dive_trip_t *trip = dive_trip_list;
@@ -906,8 +915,9 @@ void merge_dive_index(int i, struct dive *a)
add_single_dive(i, res);
delete_single_dive(i+1);
delete_single_dive(i+1);
-
+#if USE_GTK_UI
dive_list_update_dives();
+#endif
mark_divelist_changed(TRUE);
}