diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-02 13:05:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-02 13:05:12 -0700 |
commit | 8d82c57e4674cacc42e66e2af903142cf80607c6 (patch) | |
tree | 4e67627298c8b2dc3e17dc83a78f9e27320bddbe /display-gtk.h | |
parent | fe0eff8f1ef6f5bd73a0b89d3ac5fc334650c184 (diff) | |
download | subsurface-8d82c57e4674cacc42e66e2af903142cf80607c6.tar.gz |
Split up generic code to generate a gtk tree view column
We used to do this just for the dive list, but the new cylinder view
will want to do a lot of the same boilerplate gtk stuff, so make it a
bit more generic and move it to gtk-gui.c.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r-- | display-gtk.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/display-gtk.h b/display-gtk.h index ad437465c..fe373a14f 100644 --- a/display-gtk.h +++ b/display-gtk.h @@ -33,4 +33,13 @@ extern GtkWidget *equipment_widget(void); extern GtkWidget *dive_list_create(void); +typedef void (*data_func_t)(GtkTreeViewColumn *col, + GtkCellRenderer *renderer, + GtkTreeModel *model, + GtkTreeIter *iter, + gpointer data); + +extern GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title, + data_func_t data_func, PangoAlignment align, gboolean visible); + #endif |