mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-02 23:20:20 +00:00
7bbcf2fabd
Just iterate over the dive list entries, updating them one by one. This avoids the "selection destroyed" when the dive units are changed. And it's cleaner anyway. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 lines
446 B
C
20 lines
446 B
C
#ifndef DIVELIST_H
|
|
#define DIVELIST_H
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
struct DiveList {
|
|
GtkWidget *tree_view;
|
|
GtkWidget *container_widget;
|
|
GtkListStore *model;
|
|
GtkTreeViewColumn *date, *depth, *duration;
|
|
};
|
|
|
|
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);
|
|
extern void update_dive_list_units(struct DiveList *);
|
|
|
|
#endif
|