From 9ee3170de78a045125e9a3951fb2662d1dada212 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 3 Oct 2013 09:31:21 +0200 Subject: [PATCH] GdaExGrid: added sortable column from model. --- src/grid.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/grid.c b/src/grid.c index 68c9b99..d41ffeb 100644 --- a/src/grid.c +++ b/src/grid.c @@ -1,7 +1,7 @@ /* * grid.c * - * Copyright (C) 2010-2011 Andrea Zagli + * Copyright (C) 2010-2013 Andrea Zagli * * This file is part of libgdaex. * @@ -408,6 +408,11 @@ static GtkTreeView gtk_tree_view_column_add_attribute (vcolumn, (GtkCellRenderer *)cells->data, "text", col); } + if (gdaex_grid_column_get_reorderable (gcolumn)) + { + gtk_tree_view_column_set_sort_column_id (vcolumn, col); + } + gtk_tree_view_append_column (GTK_TREE_VIEW (view), vcolumn); } } -- 2.49.0