X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=display-gtk.h;h=8ca5a450e35002bcc2fa708c11402a7c7c165a3b;hb=989a70727dfc290cbd23e3d7a484755d14a11d27;hp=9e5093d400b524af5e3dea518e4f90ae742917ea;hpb=290ce56d0181c0c7e7d6e1af3eb27d3015cffca7;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