- win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
- g_signal_connect(G_OBJECT(win), "destroy", G_CALLBACK(on_destroy), NULL);
-
- /* HBOX for the list of dives and cairo window */
- vbox=gtk_hbox_new(FALSE, 5);
- gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
- gtk_container_add(GTK_CONTAINER(win), vbox);
- gtk_widget_show(vbox);
-
- /* Create the atual divelist */
- divelist = create_dive_list();
- gtk_container_add(GTK_CONTAINER(vbox), divelist);
-
- /* Frame for dive profile */
- frame = dive_profile_frame();
- gtk_container_add(GTK_CONTAINER(vbox), frame);
-
- gtk_widget_set_app_paintable(win, TRUE);
- gtk_widget_show_all(win);
-
- gtk_main();