From 8a5792d473bb30a6f5cbfd2168c4427c16436031 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 17 Mar 2013 18:07:59 -0700 Subject: Manually add gas changes to a dive Create a little widget that lists all the gases / tanks we know about and allow the user to pick one of them. Turns out that add_event only added events at the end of the list - but we treat that list as chronologically sorted. So I fixed that little mis-feature as well. This does raise the question whether we need the inverse operation (removing a gas change). And if there are other things that we should be able to manually edit, now that we have the infrastructure for this neat little context menu... See #60 -- this doesn't address all of the issues mentioned there, but at least deals with the 'headline' of the feature request... Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planner.c') diff --git a/planner.c b/planner.c index b11cda138..012a23aca 100644 --- a/planner.c +++ b/planner.c @@ -121,7 +121,7 @@ static int get_gasidx(struct dive *dive, int o2, int he) return -1; } -static void get_gas_string(int o2, int he, char *text, int len) +void get_gas_string(int o2, int he, char *text, int len) { if (is_air(o2, he)) snprintf(text, len, _("air")); -- cgit v1.2.3-70-g09d2