summaryrefslogtreecommitdiffstats
path: root/display.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-14 11:31:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-14 11:39:29 -0700
commit4c73c70ecb30ab412248e0eff4285a6a59af30fa (patch)
tree1a07faf875b944de2a5208b851a2ff90cf0deb6f /display.h
parent983e5f63563a091dfb15a8d3ee56bfa3e7a6e5c0 (diff)
downloadsubsurface-4c73c70ecb30ab412248e0eff4285a6a59af30fa.tar.gz
Separate Gtk related code from core logic: info
Surprisingly straight forward, just a couple of places where we really mix significant logic with UI code (for example setting the window title). I had to move amount_selected from display-gtk.h to display.h - I guess the number of dives that are selected is UI independent. But I wonder if we still will track this as a global variable in a Qt UI (since the Gtk selection logic is the main reason this existed in the first place). Added a new info.h files for the necessary declarations. This should make no difference to functionality. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display.h')
-rw-r--r--display.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/display.h b/display.h
index d5c69e81b..9e01c73a9 100644
--- a/display.h
+++ b/display.h
@@ -67,6 +67,8 @@ struct options {
extern char zoomed_plot, dc_number;
+extern unsigned int amount_selected;
+
#ifdef __cplusplus
}
#endif