summaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'display-gtk.h')
-rw-r--r--display-gtk.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/display-gtk.h b/display-gtk.h
index 3e12d8051..36895b7c8 100644
--- a/display-gtk.h
+++ b/display-gtk.h
@@ -30,11 +30,16 @@ typedef struct {
double phe_threshold;
} partial_pressure_graphs_t;
-extern visible_cols_t visible_cols;
-extern partial_pressure_graphs_t partial_pressure_graphs;
-extern gboolean profile_red_ceiling;
+struct preferences {
+ struct units output_units;
+ visible_cols_t visible_cols;
+ partial_pressure_graphs_t pp_graphs;
+ gboolean profile_red_ceiling;
+};
-#define GRAPHS_ENABLED (partial_pressure_graphs.po2 || partial_pressure_graphs.pn2 || partial_pressure_graphs.phe)
+extern struct preferences prefs;
+
+#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
typedef enum {
PREF_BOOL,