mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
(gtk) make the columns in the main window sortable
This commit is contained in:
parent
f62addb8aa
commit
d33bb5cde6
1 changed files with 2 additions and 0 deletions
|
@ -193,6 +193,7 @@ makeview( PrivateData * p )
|
|||
NULL, NULL );
|
||||
gtk_tree_view_column_set_expand( col, TRUE );
|
||||
gtk_tree_view_column_set_sizing( col, GTK_TREE_VIEW_COLUMN_AUTOSIZE );
|
||||
gtk_tree_view_column_set_sort_column_id( col, MC_NAME );
|
||||
gtk_tree_view_append_column( GTK_TREE_VIEW( view ), col );
|
||||
|
||||
progrend = tr_cell_renderer_progress_new();
|
||||
|
@ -205,6 +206,7 @@ makeview( PrivateData * p )
|
|||
gtk_tree_view_column_set_cell_data_func( col, progrend, formatprog,
|
||||
NULL, NULL );
|
||||
gtk_tree_view_column_set_sizing( col, GTK_TREE_VIEW_COLUMN_AUTOSIZE );
|
||||
gtk_tree_view_column_set_sort_column_id( col, MC_PROG_D );
|
||||
gtk_tree_view_append_column( GTK_TREE_VIEW( view ), col );
|
||||
|
||||
/* XXX this shouldn't be necessary */
|
||||
|
|
Loading…
Reference in a new issue