aboutsummaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 18:30:42 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 18:30:42 -0700
commit23c6a42b084fbd1affbf7cc1b3f5e94fb15d3a92 (patch)
treeb242b461a5ae6a931b8e230405b27f9e1a66f970 /info.c
parent3d01a5f71a29a8b7ce2a3648130660dabe62fae9 (diff)
downloadsubsurface-23c6a42b084fbd1affbf7cc1b3f5e94fb15d3a92.tar.gz
Make the main display saner
This tweaks: - packing to be what you'd kind of expect - makes the "summary info" always visible - the "extended info" is now on a notebook page of its own - dive profile the first notebook page, since the summary information is visible regardless. which all just seems a lot more logical. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/info.c b/info.c
index bef3f1dba..6d91a0f26 100644
--- a/info.c
+++ b/info.c
@@ -51,19 +51,31 @@ GtkWidget *dive_info_frame(void)
datetime = gtk_entry_new();
gtk_editable_set_editable(GTK_EDITABLE(datetime), FALSE);
-
gtk_box_pack_start(GTK_BOX(hbox), datetime, FALSE, FALSE, 0);
depth = gtk_entry_new();
gtk_editable_set_editable(GTK_EDITABLE(depth), FALSE);
-
gtk_box_pack_start(GTK_BOX(hbox), depth, FALSE, FALSE, 0);
duration = gtk_entry_new();
gtk_editable_set_editable(GTK_EDITABLE(duration), FALSE);
-
gtk_box_pack_start(GTK_BOX(hbox), duration, FALSE, FALSE, 0);
+ return frame;
+}
+
+GtkWidget *extended_dive_info_frame(void)
+{
+ GtkWidget *frame;
+ GtkWidget *vbox;
+
+ frame = gtk_frame_new("Extended dive info");
+ gtk_widget_show(frame);
+
+ vbox = gtk_vbox_new(FALSE, 5);
+ gtk_container_add(GTK_CONTAINER(frame), vbox);
+
+ /* Add extended info here: name, description, yadda yadda */
update_dive_info(current_dive);
return frame;
}