summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Nathan Samson <nathansamson@gmail.com>2011-09-05 21:12:58 +0200
committerGravatar Nathan Samson <nathansamson@gmail.com>2011-09-05 21:12:58 +0200
commit21204926dfda996c47b4d638e30fb0b1f9968c63 (patch)
tree05811b855e3827839ecb694c5ac522c3082ec92c /divelist.h
parent4f5e3a06ab9ea8dea656b07bff9d0f4022c5b6ba (diff)
downloadsubsurface-21204926dfda996c47b4d638e30fb0b1f9968c63.tar.gz
Open File works. I refactored the code and introduced a new type. I never used it as a pointer (their was no real reason), but I'm not really satisfied.
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
Diffstat (limited to 'divelist.h')
-rw-r--r--divelist.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h
new file mode 100644
index 000000000..dc573d770
--- /dev/null
+++ b/divelist.h
@@ -0,0 +1,18 @@
+#ifndef DIVELIST_H
+#define DIVELIST_H
+
+#include <gtk/gtk.h>
+
+struct DiveList {
+ GtkWidget *tree_view;
+ GtkWidget *container_widget;
+ GtkListStore *model;
+};
+
+extern int selected_dive;
+#define current_dive (get_dive(selected_dive))
+
+extern struct DiveList dive_list_create(void);
+extern void dive_list_update_dives(struct DiveList);
+
+#endif