From 33e116f971ff758ccd98aa588a2feac3f7176a38 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 11 Feb 2010 14:55:00 +0000 Subject: [PATCH] (trunk gtk) #2894 "tr_torrentGetFileDL() and tr_torrentGetFilePriority() should go away" -- finished removing them from the GTK+ client --- gtk/file-list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/file-list.c b/gtk/file-list.c index 216ee1417..d1d16db08 100644 --- a/gtk/file-list.c +++ b/gtk/file-list.c @@ -388,8 +388,9 @@ buildTree( GNode * node, gpointer gdata ) const char * mime_type = isLeaf ? get_mime_type_from_filename( child_data->name ) : DIRECTORY_MIME_TYPE; GdkPixbuf * icon = get_mime_type_icon( mime_type, GTK_ICON_SIZE_MENU, build->w ); - const int priority = isLeaf ? tr_torrentGetFilePriority( build->tor, child_data->index ) : 0; - const gboolean enabled = isLeaf ? tr_torrentGetFileDL( build->tor, child_data->index ) : TRUE; + const tr_info * inf = tr_torrentInfo( build->tor ); + const int priority = isLeaf ? inf->files[ child_data->index ].priority : 0; + const gboolean enabled = isLeaf ? !inf->files[ child_data->index ].dnd : TRUE; #if GTK_CHECK_VERSION(2,10,0) gtk_tree_store_insert_with_values( build->store, &child_iter, build->iter, INT_MAX, FC_INDEX, child_data->index, -- 2.40.0