summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Nathan Samson <nathansamson@gmail.com>2011-09-04 19:01:30 +0200
committerGravatar Nathan Samson <nathansamson@gmail.com>2011-09-04 19:01:30 +0200
commit6138d151e9156bdf15843b1b54104428c5124e38 (patch)
treefe23a930108345a9b7cb9edd6bcd08d6054814e6 /main.c
parent1117cd37d71e294069a670bdf0851041575e0d5f (diff)
downloadsubsurface-6138d151e9156bdf15843b1b54104428c5124e38.tar.gz
Remove the redundant frames in the notebook. Closes #9
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index b748f693b..57c8f70e6 100644
--- a/main.c
+++ b/main.c
@@ -178,6 +178,7 @@ int main(int argc, char **argv)
GtkWidget *info_box;
GtkWidget *notebook;
GtkWidget *frame;
+ GtkWidget *dive_info;
GtkWidget *menubar;
GtkWidget *vbox;
@@ -228,13 +229,12 @@ int main(int argc, char **argv)
gtk_box_pack_start(GTK_BOX(info_box), notebook, TRUE, TRUE, 5);
/* Frame for dive profile */
- frame = dive_profile_frame();
- gtk_notebook_append_page(GTK_NOTEBOOK(notebook), frame, gtk_label_new("Dive Profile"));
- dive_profile = frame;
+ dive_profile = dive_profile_widget();
+ gtk_notebook_append_page(GTK_NOTEBOOK(notebook), dive_profile, gtk_label_new("Dive Profile"));
/* Frame for extended dive info */
- frame = extended_dive_info_frame();
- gtk_notebook_append_page(GTK_NOTEBOOK(notebook), frame, gtk_label_new("Extended dive Info"));
+ dive_info = extended_dive_info_widget();
+ gtk_notebook_append_page(GTK_NOTEBOOK(notebook), dive_info, gtk_label_new("Extended dive Info"));
gtk_widget_set_app_paintable(win, TRUE);
gtk_widget_show_all(win);