summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-02 09:10:57 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-02 12:27:12 -0700
commit619ab9e828d4db7b0c4089018b09892c9d04ece9 (patch)
tree7f4a4c28cc9a6ea635cee24366ac01917dacfb2c /gtk-gui.c
parent485b02937d8ca1f9a9043c89e74a3d2f15d6426b (diff)
downloadsubsurface-619ab9e828d4db7b0c4089018b09892c9d04ece9.tar.gz
Add Info & Stats page to the notebook
This provides the relevant information for the currently selected dive plus a bunch of statistics over all dives in the dive_table. The visual design has lots of room for improvement - right now the different fields change size - it might be nice to have a more modern look for the entries - the O2/He field is odd - for most divers the He value will always be 0, so maybe we should only show He if there's at least one dive that uses He? Also, we simply do a comma separated list of gases for all the tanks used Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index b16050838..dd79f7311 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -746,6 +746,7 @@ void init_ui(int argc, char **argv)
GtkWidget *dive_info;
GtkWidget *dive_list;
GtkWidget *equipment;
+ GtkWidget *stats;
GtkWidget *menubar;
GtkWidget *vbox;
GdkScreen *screen;
@@ -875,6 +876,10 @@ void init_ui(int argc, char **argv)
equipment = equipment_widget();
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), equipment, gtk_label_new("Equipment"));
+ /* Frame for dive statistics */
+ stats = stats_widget();
+ gtk_notebook_append_page(GTK_NOTEBOOK(notebook), stats, gtk_label_new("Info & Stats"));
+
gtk_widget_set_app_paintable(win, TRUE);
gtk_widget_show_all(win);