diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-11 11:09:37 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-11 11:09:37 -0800 |
commit | 50d026230fa7303b33821da1346875b30f5ab00d (patch) | |
tree | 09e514c3bf3e1c9b12d3cbbe60e9df47972d3c96 /info.c | |
parent | 6131dbc74c700ce1983740034ffb5e6d9b4bc54f (diff) | |
download | subsurface-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |