]> git.tdb.fi Git - ext/subsurface.git/blobdiff - main.c
Teach the thing to actually track the currently selected dive
[ext/subsurface.git] / main.c
diff --git a/main.c b/main.c
index e567ee118fe7ae43281329bc6216dc5cfaed3337..af1348986b8aac1a18470051254988d112fd74e5 100644 (file)
--- a/main.c
+++ b/main.c
@@ -47,6 +47,13 @@ static void on_destroy(GtkWidget* w, gpointer data)
        gtk_main_quit();
 }
 
+static GtkWidget *dive_profile;
+
+void repaint_dive(void)
+{
+       gtk_widget_queue_draw(dive_profile);
+}
+
 int main(int argc, char **argv)
 {
        int i;
@@ -87,6 +94,7 @@ int main(int argc, char **argv)
        /* Frame for dive profile */
        frame = dive_profile_frame();
        gtk_container_add(GTK_CONTAINER(vbox), frame);
+       dive_profile = frame;
 
        gtk_widget_set_app_paintable(win, TRUE);
        gtk_widget_show_all(win);