diff options
author | 2011-09-05 14:44:27 -0700 | |
---|---|---|
committer | 2011-09-05 14:44:27 -0700 | |
commit | c24fd4b82cf4476c6d9c863ee03f2d729b64e5f0 (patch) | |
tree | e2585459dafdcb544bfc4ff3e91e94a84fc72341 /divelist.h | |
parent | 8197d7f4d4702d18df5b2121b5e0126c61e1b7ea (diff) | |
parent | 11becb87505b8cdf6fbf2f10941f87d394e49f80 (diff) | |
download | subsurface-c24fd4b82cf4476c6d9c863ee03f2d729b64e5f0.tar.gz |
Merge branch 'open-files' of git://github.com/nathansamson/diveclog
* 'open-files' of git://github.com/nathansamson/diveclog:
Report errors when opening files
Make it possible to load multiple files at once.
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.
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 18 |
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 |