Changeset 12321


Ignore:
Timestamp:
Apr 5, 2011, 5:00:38 PM (11 years ago)
Author:
jordan
Message:

(trunk gtk) removed the unused MC_NAME column from the torrent GtkListStore?.

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r12316 r12321  
    225225    /* column types for the model used to store torrent information */
    226226    /* keep this in sync with the enum near the bottom of tr_core.h */
    227     GType types[] = { G_TYPE_STRING,    /* name */
    228                       G_TYPE_STRING,    /* collated name */
     227    GType types[] = { G_TYPE_STRING,    /* collated name */
    229228                      G_TYPE_POINTER,   /* tr_torrent* */
    230229                      G_TYPE_INT,       /* torrent id */
     
    10071006        GtkTreeIter unused;
    10081007        const tr_stat * st = tr_torrentStat( tor );
    1009         const char * name = tr_torrentName( tor );
    10101008        char * collated = get_collated_name( tor );
    10111009        const unsigned int trackers_hash = build_torrent_trackers_hash( tor );
     
    10131011
    10141012        gtk_list_store_insert_with_values( store, &unused, 0,
    1015             MC_NAME,              name,
    10161013            MC_NAME_COLLATED,     collated,
    10171014            MC_TORRENT,           tor,
     
    10281025
    10291026        if( do_notify )
    1030             gtr_notify_torrent_added( name );
     1027            gtr_notify_torrent_added( tr_torrentName( tor ) );
    10311028
    10321029        tr_torrentSetMetadataCallback( tor, on_torrent_metadata_changed, core );
  • trunk/gtk/tr-core.h

    r12090 r12321  
    184184enum
    185185{
    186     MC_NAME,
    187186    MC_NAME_COLLATED,
    188187    MC_TORRENT,
Note: See TracChangeset for help on using the changeset viewer.