mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create separate single dive and total stats pages
No additional statistics added, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
68a1ff9cf5
commit
788ebc0500
3 changed files with 18 additions and 21 deletions
14
statistics.c
14
statistics.c
|
@ -242,10 +242,11 @@ static GtkWidget *new_info_label_in_frame(GtkWidget *box, const char *label)
|
|||
return label_widget;
|
||||
}
|
||||
|
||||
static GtkWidget *total_stats_widget(GtkWidget *vbox)
|
||||
GtkWidget *total_stats_widget(void)
|
||||
{
|
||||
GtkWidget *vbox, *hbox, *statsframe, *framebox;
|
||||
|
||||
GtkWidget *hbox, *statsframe, *framebox;
|
||||
vbox = gtk_vbox_new(FALSE, 3);
|
||||
|
||||
statsframe = gtk_frame_new("Statistics");
|
||||
gtk_box_pack_start(GTK_BOX(vbox), statsframe, TRUE, FALSE, 3);
|
||||
|
@ -272,9 +273,8 @@ static GtkWidget *total_stats_widget(GtkWidget *vbox)
|
|||
return vbox;
|
||||
}
|
||||
|
||||
static GtkWidget *single_stats_widget(void)
|
||||
GtkWidget *single_stats_widget(void)
|
||||
{
|
||||
|
||||
GtkWidget *vbox, *hbox, *infoframe, *framebox;
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 3);
|
||||
|
@ -311,9 +311,3 @@ static GtkWidget *single_stats_widget(void)
|
|||
|
||||
return vbox;
|
||||
}
|
||||
|
||||
GtkWidget* stats_widget(void)
|
||||
{
|
||||
GtkWidget *vbox = single_stats_widget();
|
||||
return total_stats_widget(vbox);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue