Make helper function for creating TreeView columns in the dive list

Let's not repeat the boiler-plate code more than necessary.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-19 21:39:15 -07:00
parent 61ebee05dc
commit d3feb78df5
2 changed files with 40 additions and 77 deletions

View file

@ -8,7 +8,7 @@ struct DiveList {
GtkWidget *container_widget;
GtkListStore *model;
GtkTreeViewColumn *date, *depth, *duration, *location;
GtkTreeViewColumn *temperature, *nitrox, *sac;
GtkTreeViewColumn *temperature, *cylinder, *nitrox, *sac;
};
struct dive;