1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(gtk) #1274: Cannot resize columns in 'File' tab of 'Details' window

This commit is contained in:
Charles Kerr 2008-09-16 18:28:22 +00:00
parent b00bce23f5
commit f12f17dba9

View file

@ -704,6 +704,7 @@ file_list_new( TrTorrent * gtor )
g_object_set( rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL );
gtk_tree_view_column_pack_start( col, rend, TRUE );
gtk_tree_view_column_set_cell_data_func( col, rend, renderFilename, NULL, NULL);
gtk_tree_view_column_set_resizable( col, TRUE );
gtk_tree_view_append_column( GTK_TREE_VIEW( view ), col );
@ -712,6 +713,7 @@ file_list_new( TrTorrent * gtor )
Don't include the prefix "filedetails|" in the translation. */
col = gtk_tree_view_column_new_with_attributes( Q_("filedetails|Progress"), rend, NULL );
gtk_tree_view_column_set_cell_data_func( col, rend, renderProgress, NULL, NULL);
gtk_tree_view_column_set_resizable( col, TRUE );
gtk_tree_view_append_column ( GTK_TREE_VIEW( view ), col);
/* add "enabled" column */
@ -721,12 +723,14 @@ file_list_new( TrTorrent * gtor )
The items for this column are checkboxes (yes/no) */
col = gtk_tree_view_column_new_with_attributes( Q_( "filedetails|Download" ), rend, NULL );
gtk_tree_view_column_set_cell_data_func( col, rend, renderDownload, NULL, NULL);
gtk_tree_view_column_set_resizable( col, TRUE );
gtk_tree_view_append_column ( GTK_TREE_VIEW( view ), col);
/* add priority column */
rend = gtk_cell_renderer_text_new( );
col = gtk_tree_view_column_new_with_attributes( _( "Priority" ), rend, NULL );
gtk_tree_view_column_set_cell_data_func( col, rend, renderPriority, NULL, NULL);
gtk_tree_view_column_set_resizable( col, TRUE );
gtk_tree_view_append_column ( GTK_TREE_VIEW( view ), col);
/* create the scrolled window and stick the view in it */