]> git.tdb.fi Git - ext/subsurface.git/blobdiff - main.c
Indicate vertical velocity through color
[ext/subsurface.git] / main.c
diff --git a/main.c b/main.c
index 4e15de2b37b3d7a3ea2745dc97574cc1ab923e13..e6f58ce5bf6325dbc78792d32ccb9f64cbcb2c63 100644 (file)
--- a/main.c
+++ b/main.c
@@ -19,7 +19,7 @@ struct DiveList   dive_list;
 GConfClient *gconf;
 struct units output_units;
 
-#define GCONF_NAME(x) "/apps/diveclog/" #x
+#define GCONF_NAME(x) "/apps/subsurface/" #x
 
 static int sortfn(const void *_a, const void *_b)
 {
@@ -410,6 +410,11 @@ static GtkWidget *get_menubar_menu(GtkWidget *window)
        return menu;
 }
 
+static void switch_page(GtkNotebook *notebook, gint arg1, gpointer user_data)
+{
+       repaint_dive();
+}
+
 int main(int argc, char **argv)
 {
        int i;
@@ -470,6 +475,7 @@ int main(int argc, char **argv)
 
        /* Notebook for dive info vs profile vs .. */
        notebook = gtk_notebook_new();
+       g_signal_connect(notebook, "switch-page", G_CALLBACK(switch_page), NULL);
        gtk_box_pack_start(GTK_BOX(info_box), notebook, TRUE, TRUE, 6);
 
        /* Frame for dive profile */