mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4f5e3a06ab
commit
21204926df
7 changed files with 54 additions and 30 deletions
18
divelist.h
Normal file
18
divelist.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue