summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-06 19:28:31 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-06 19:28:31 -0700
commita06d93217f1eded198e39d971a9286539f82b5c5 (patch)
tree01446b11cdb3e59bdd481a95e9d01c9df116ea3e /main.c
parent75cb94f06789380c161317d17ce73a938a3556b5 (diff)
downloadsubsurface-a06d93217f1eded198e39d971a9286539f82b5c5.tar.gz
Start doing gas management using output units
Ok, it's an odd place to start, but this now shows the pressure curve details and the air usage in the proper units. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9ef4fa0b4..e516d38c8 100644
--- a/main.c
+++ b/main.c
@@ -205,11 +205,13 @@ static void quit(GtkWidget *w, gpointer data)
static void imperial(GtkWidget *w, gpointer data)
{
output_units = IMPERIAL_units;
+ repaint_dive();
}
static void metric(GtkWidget *w, gpointer data)
{
output_units = SI_units;
+ repaint_dive();
}
static GtkActionEntry menu_items[] = {