Create the infrastructure for a dive plannder based on a tree-model

This doesn't actually do the real work yet, but it creates all the
infrastructure to edit a tree model, and verify the contents for time,
depth and gas mix.

Now we just need the ability to add entries to the tree model (this adds
one fake one, just to test the editing), and then read out the final end
result and turn it into a plan.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Linus Torvalds 2013-01-05 12:16:02 -08:00 committed by Dirk Hohndel
parent 8c3d07816f
commit f31b836836
2 changed files with 242 additions and 37 deletions

View file

@ -127,6 +127,7 @@ typedef gint (*sort_func_t)(GtkTreeModel *model,
#define ALIGN_RIGHT 2
#define INVISIBLE 4
#define UNSORTABLE 8
#define EDITABLE 16
extern GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title,
data_func_t data_func, unsigned int flags);