summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 12:09:19 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 12:09:19 -0700
commita11dbbdb1856a05b97e872fd732682d9bf8ef49b (patch)
treee4b5623202d41421466950ad2ab2549591548520 /info.c
parent7017d17562fe803946ef9e0d8e9af9611bc43ba5 (diff)
downloadsubsurface-a11dbbdb1856a05b97e872fd732682d9bf8ef49b.tar.gz
Add fake 'info' frame contents
It should have depth, time, place etc information, but right now it only has a fake depth that doesn't even get updated. Just to show the idea of the table usage. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/info.c b/info.c
new file mode 100644
index 000000000..05bcf0f78
--- /dev/null
+++ b/info.c
@@ -0,0 +1,27 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <time.h>
+
+#include "dive.h"
+#include "display.h"
+
+GtkWidget *dive_info_frame(void)
+{
+ GtkWidget *frame;
+ GtkWidget *hbox;
+ GtkWidget *depth;
+
+ frame = gtk_frame_new("Dive info");
+ gtk_widget_show(frame);
+
+ hbox = gtk_hbox_new(FALSE, 5);
+ gtk_container_add(GTK_CONTAINER(frame), hbox);
+
+ depth = gtk_entry_new();
+ gtk_entry_set_text(GTK_ENTRY(depth), "54 ft");
+ gtk_editable_set_editable(GTK_EDITABLE(depth), FALSE);
+
+ gtk_box_pack_start(GTK_BOX(hbox), depth, FALSE, FALSE, 0);
+
+ return frame;
+}