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:
Nathan Samson 2011-09-05 21:12:58 +02:00
parent 4f5e3a06ab
commit 21204926df
7 changed files with 54 additions and 30 deletions

18
divelist.h Normal file
View 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