From: Charles Kerr Date: Tue, 16 Sep 2008 18:28:22 +0000 (+0000) Subject: (gtk) #1274: Cannot resize columns in 'File' tab of 'Details' window X-Git-Tag: 1.40~306 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f12f17dba9b9b72ab855defd6f6d04b6088b5962;p=transmission (gtk) #1274: Cannot resize columns in 'File' tab of 'Details' window --- diff --git a/gtk/file-list.c b/gtk/file-list.c index fac71faf1..c4a36c7d8 100644 --- a/gtk/file-list.c +++ b/gtk/file-list.c @@ -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 */