From: Andrea Zagli Date: Thu, 3 Oct 2013 07:31:21 +0000 (+0200) Subject: GdaExGrid: added sortable column from model. X-Git-Tag: 0.4.0~16 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=9ee3170de78a045125e9a3951fb2662d1dada212;p=libgdaex GdaExGrid: added sortable column from model. --- 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); } }