]> git.tdb.fi Git - ext/subsurface.git/blob - info.c
Add fake 'info' frame contents
[ext/subsurface.git] / info.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <time.h>
4
5 #include "dive.h"
6 #include "display.h"
7
8 GtkWidget *dive_info_frame(void)
9 {
10         GtkWidget *frame;
11         GtkWidget *hbox;
12         GtkWidget *depth;
13
14         frame = gtk_frame_new("Dive info");
15         gtk_widget_show(frame);
16
17         hbox = gtk_hbox_new(FALSE, 5);
18         gtk_container_add(GTK_CONTAINER(frame), hbox);
19
20         depth = gtk_entry_new();
21         gtk_entry_set_text(GTK_ENTRY(depth), "54 ft");
22         gtk_editable_set_editable(GTK_EDITABLE(depth), FALSE);
23
24         gtk_box_pack_start(GTK_BOX(hbox), depth, FALSE, FALSE, 0);
25
26         return frame;
27 }