Changeset 10173


Ignore:
Timestamp:
Feb 11, 2010, 2:55:00 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) #2894 "tr_torrentGetFileDL() and tr_torrentGetFilePriority() should go away" -- finished removing them from the GTK+ client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/file-list.c

    r10172 r10173  
    389389    const char * mime_type = isLeaf ? get_mime_type_from_filename( child_data->name ) : DIRECTORY_MIME_TYPE;
    390390    GdkPixbuf * icon = get_mime_type_icon( mime_type, GTK_ICON_SIZE_MENU, build->w );
    391     const int priority = isLeaf ? tr_torrentGetFilePriority( build->tor, child_data->index ) : 0;
    392     const gboolean enabled = isLeaf ? tr_torrentGetFileDL( build->tor, child_data->index ) : TRUE;
     391    const tr_info * inf = tr_torrentInfo( build->tor );
     392    const int priority = isLeaf ? inf->files[ child_data->index ].priority : 0;
     393    const gboolean enabled = isLeaf ? !inf->files[ child_data->index ].dnd : TRUE;
    393394#if GTK_CHECK_VERSION(2,10,0)
    394395    gtk_tree_store_insert_with_values( build->store, &child_iter, build->iter, INT_MAX,
Note: See TracChangeset for help on using the changeset viewer.