(trunk gtk) #2894 "tr_torrentGetFileDL() and tr_torrentGetFilePriority() should go away" -- finished removing them from the GTK+ client
This commit is contained in:
parent
c51611f202
commit
33e116f971
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue