MODEST_HEADER_VIEW_COLUMN));
width = gtk_tree_view_column_get_width (col);
sort = 0;
-/* if (sort_colid == gtk_tree_view_column_get_sort_column_id(col)) */
if (sort_colid == col_id)
sort = 1;
if (cols) {
GList *viewcolumns, *colcursor, *widthcursor, *sortablecursor;
-/* gint sort_colid = -1; */
modest_header_view_set_columns (header_view, cols, type);
sortable = gtk_tree_view_get_model (GTK_TREE_VIEW (header_view));
if (sort > 0) {
int colid = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(colcursor->data), MODEST_HEADER_VIEW_COLUMN));
modest_header_view_set_sort_column_id (header_view, colid, type);
-/* sort_colid = gtk_tree_view_column_get_sort_column_id (GTK_TREE_VIEW_COLUMN(colcursor->data)); */
-/* modest_header_view_set_sort_column_id (header_view, sort_colid, type); */
-/* gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE(sortable), */
-/* sort_colid, */
-/* GTK_SORT_DESCENDING); */
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE(sortable),
colid,
GTK_SORT_DESCENDING);
g_return_val_if_reached(FALSE);
}
- if (sortable) {
-/* guint sort_colid = gtk_tree_view_column_get_sort_column_id (column); */
-/* gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE(sortable), */
-/* sort_colid, (GtkTreeIterCompareFunc)cmp_rows, */
-/* column, NULL); */
- gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE(sortable),
- col, (GtkTreeIterCompareFunc)cmp_rows,
- column, NULL);
- }
/* we keep the column id around */
g_object_set_data (G_OBJECT(column), MODEST_HEADER_VIEW_COLUMN,
GINT_TO_POINTER(col));
sort_colid = modest_header_view_get_sort_column_id (self, type);
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE(sortable),
sort_colid,
- GTK_SORT_DESCENDING);
+ GTK_SORT_ASCENDING);
/* Set new model */
modest_header_view_set_model (GTK_TREE_VIEW (self), sortable);
sort_colid = modest_header_view_get_sort_column_id (self, type);
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE(sortable),
sort_colid,
- GTK_SORT_DESCENDING);
+ GTK_SORT_ASCENDING);
/* Set new model */
modest_header_view_set_model (GTK_TREE_VIEW (self), sortable);