mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6131dbc74c
commit
50d026230f
2 changed files with 81 additions and 28 deletions
5
info.c
5
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue