X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=display-gtk.h;h=8ca5a450e35002bcc2fa708c11402a7c7c165a3b;hb=bb09b67182187be284ae1f80fc7174da0dcd9ee3;hp=9e5093d400b524af5e3dea518e4f90ae742917ea;hpb=671f6544ac8b4a6eb68576b37344e84808511eb8;p=ext%2Fsubsurface.git diff --git a/display-gtk.h b/display-gtk.h index 9e5093d..8ca5a45 100644 --- a/display-gtk.h +++ b/display-gtk.h @@ -57,7 +57,17 @@ typedef void (*data_func_t)(GtkTreeViewColumn *col, GtkTreeIter *iter, gpointer data); +typedef gint (*sort_func_t)(GtkTreeModel *model, + GtkTreeIter *a, + GtkTreeIter *b, + gpointer user_data); + +#define ALIGN_LEFT 1 +#define ALIGN_RIGHT 2 +#define INVISIBLE 4 +#define UNSORTABLE 8 + extern GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title, - data_func_t data_func, PangoAlignment align, gboolean visible); + data_func_t data_func, unsigned int flags); #endif