summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-11 11:09:37 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-11 11:09:37 -0800
commit50d026230fa7303b33821da1346875b30f5ab00d (patch)
tree09e514c3bf3e1c9b12d3cbbe60e9df47972d3c96 /info.c
parent6131dbc74c700ce1983740034ffb5e6d9b4bc54f (diff)
downloadsubsurface-50d026230fa7303b33821da1346875b30f5ab00d.tar.gz
Allow editing of Helium values in cylinder info
Henrik Aronsen points out that we've not made it possible to edit the He percentages for trimix diving. It's easy enough to do, I just didn't have any dives that needed it myself. So here goes. Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/info.c b/info.c
index a298a07e3..377f33caa 100644
--- a/info.c
+++ b/info.c
@@ -339,10 +339,13 @@ static void dive_info_widget(GtkWidget *box, struct dive *dive, struct dive_info
if (dive->notes && *dive->notes)
gtk_text_buffer_set_text(gtk_text_view_get_buffer(info->notes), dive->notes, -1);
+ hbox = gtk_hbox_new(FALSE, 3);
+ gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, TRUE, 0);
+
frame = gtk_frame_new("Cylinder");
cylinder = cylinder_list_widget();
gtk_container_add(GTK_CONTAINER(frame), cylinder);
- gtk_box_pack_start(GTK_BOX(box), frame, FALSE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(hbox), frame, FALSE, TRUE, 0);
}
int edit_dive_info(struct dive *dive)