]> git.tdb.fi Git - ext/subsurface.git/blobdiff - info.c
Add the cylinder list to the dive info edit dialog
[ext/subsurface.git] / info.c
diff --git a/info.c b/info.c
index 890061b12622c16e0fce950b513e5cf5c191c9f0..7e94a22046b477bbaaf761016703ec205d5e567e 100644 (file)
--- a/info.c
+++ b/info.c
@@ -298,7 +298,7 @@ static void save_dive_info_changes(struct dive *dive, struct dive_info *info)
 
 static void dive_info_widget(GtkWidget *box, struct dive *dive, struct dive_info *info)
 {
-       GtkWidget *hbox, *label;
+       GtkWidget *hbox, *label, *cylinder, *frame;
        char buffer[80];
 
        divename(buffer, sizeof(buffer), dive);
@@ -316,6 +316,11 @@ static void dive_info_widget(GtkWidget *box, struct dive *dive, struct dive_info
        info->notes = text_view(box, "Notes", READ_WRITE);
        if (dive->notes && *dive->notes)
                gtk_text_buffer_set_text(gtk_text_view_get_buffer(info->notes), dive->notes, -1);
+
+       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);
 }
 
 int edit_dive_info(struct dive *dive)