diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-11 11:40:17 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-11 11:40:17 -0800 |
commit | f078bc04e1f55ad9ecd0632fcfa5753440ba2267 (patch) | |
tree | a54d6bd997af8ea63db58915ba41908051b5a720 /display-gtk.h | |
parent | 50d026230fa7303b33821da1346875b30f5ab00d (diff) | |
download | subsurface-f078bc04e1f55ad9ecd0632fcfa5753440ba2267.tar.gz |
Make the cylinder table columns unsortable
They were never intended to be sortable, but using common code with the
dive list picked up that "sort by index" thing by mistake.
If we really want to be able to sort cylinders by O2 percentage (which
really doesn't seem to make much sense, considering that you usually
have just one or two cylinders) we will need to also handle the case of
editing the (differently sorted) cylinder table. Which we don't do now.
Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r-- | display-gtk.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/display-gtk.h b/display-gtk.h index 9e5093d40..d5ffcb246 100644 --- a/display-gtk.h +++ b/display-gtk.h @@ -57,7 +57,12 @@ typedef void (*data_func_t)(GtkTreeViewColumn *col, GtkTreeIter *iter, gpointer 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 |