]> git.tdb.fi Git - ext/subsurface.git/blobdiff - info.c
Separate out the UI from the program logic
[ext/subsurface.git] / info.c
diff --git a/info.c b/info.c
index c1779cc452ac6a96fab304eb7adfbf5aeb5846ab..9e061970d808ba14bb18d9c259de638781b0c0af 100644 (file)
--- a/info.c
+++ b/info.c
@@ -1,3 +1,13 @@
+/* info.c */
+/* creates the UI for the info frame - 
+ * controlled through the following interfaces:
+ * 
+ * void flush_dive_info_changes(struct dive *dive)
+ * void show_dive_info(struct dive *dive)
+ *
+ * called from gtk-ui:
+ * GtkWidget *extended_dive_info_widget(void)
+ */
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -5,6 +15,7 @@
 
 #include "dive.h"
 #include "display.h"
+#include "display-gtk.h"
 #include "divelist.h"
 
 static GtkEntry *location, *buddy, *divemaster;