summaryrefslogtreecommitdiffstats
path: root/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Lakshman <acrlakshman@gmail.com>2014-03-10 22:49:08 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-10 21:10:27 -0700
commit6e4466aa0a349df1b377a3755117b1f7da76e68f (patch)
tree979d2bc107c4faf8643c1797b4c0a93261e397d9 /subsurfacestartup.c
parenteb47b2a8d8764778697ac2fdb342c976cd487ca3 (diff)
downloadsubsurface-6e4466aa0a349df1b377a3755117b1f7da76e68f.tar.gz
Show temperature units in the label when editing dive
Currently when user wants to add a new dive information, the ways to know what unit system is being used are - Through preferences panel. - Save the dive information, which displays units in the text field. This patch provides an option to the user to show current unit system by displaying the unit on the side of the label when the user is editing the fields. This feature can be enabled or disabled by using the new checkbox option i.e. `Show units in text labels` included in `preferences->units` section. Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacestartup.c')
-rw-r--r--subsurfacestartup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c
index efdcb9a6c..3f410aff4 100644
--- a/subsurfacestartup.c
+++ b/subsurfacestartup.c
@@ -29,7 +29,8 @@ struct preferences default_prefs = {
.font_size = -1,
.display_invalid_dives = false,
.show_sac = false,
- .display_unused_tanks = false
+ .display_unused_tanks = false,
+ .text_label_with_units = false
};
struct units *get_units()