Changeset 11808


Ignore:
Timestamp:
Feb 2, 2011, 2:45:20 AM (11 years ago)
Author:
jordan
Message:

(trunk gtk) #3972 "Verify progress changes not displaying" -- fixed.

make sure to call gtk_list_store_set() on rows matching torrents whose tr_stat.recheckProgress value has changed, triggering a row change event that causes the verify progress change to be displayed.

Location:
trunk/gtk
Files:
2 edited

Legend:

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

    r11802 r11808  
    772772                      G_TYPE_DOUBLE,    /* tr_stat.pieceUploadSpeed_KBps */
    773773                      G_TYPE_DOUBLE,    /* tr_stat.pieceDownloadSpeed_KBps */
     774                      G_TYPE_DOUBLE,    /* tr_stat.recheckProgress */
    774775                      G_TYPE_BOOLEAN,   /* filter.c:ACTIVITY_FILTER_ACTIVE */
    775776                      G_TYPE_INT,       /* tr_stat.activity */
     
    886887
    887888    gtk_list_store_insert_with_values( store, &unused, 0,
    888                                        MC_NAME,          inf->name,
    889                                        MC_NAME_COLLATED, collated,
    890                                        MC_TORRENT,       gtor,
    891                                        MC_TORRENT_RAW,   tor,
    892                                        MC_SPEED_UP,      st->pieceUploadSpeed_KBps,
    893                                        MC_SPEED_DOWN,    st->pieceDownloadSpeed_KBps,
    894                                        MC_ACTIVE,        isTorrentActive( st ),
    895                                        MC_ACTIVITY,      st->activity,
    896                                        MC_FINISHED,      st->finished,
    897                                        MC_PRIORITY,      tr_torrentGetPriority( tor ),
    898                                        MC_TRACKERS,      trackers,
    899                                        -1 );
     889        MC_NAME,              inf->name,
     890        MC_NAME_COLLATED,     collated,
     891        MC_TORRENT,           gtor,
     892        MC_TORRENT_RAW,       tor,
     893        MC_SPEED_UP,          st->pieceUploadSpeed_KBps,
     894        MC_SPEED_DOWN,        st->pieceDownloadSpeed_KBps,
     895        MC_RECHECK_PROGRESS,  st->recheckProgress,
     896        MC_ACTIVE,            isTorrentActive( st ),
     897        MC_ACTIVITY,          st->activity,
     898        MC_FINISHED,          st->finished,
     899        MC_PRIORITY,          tr_torrentGetPriority( tor ),
     900        MC_TRACKERS,          trackers,
     901        -1 );
    900902
    901903    if( doNotify )
     
    13001302    double oldUpSpeed, newUpSpeed;
    13011303    double oldDownSpeed, newDownSpeed;
     1304    double oldRecheckProgress, newRecheckProgress;
    13021305    gboolean oldActive, newActive;
    13031306    const tr_stat * st;
     
    13171320                        MC_TRACKERS, &oldTrackers,
    13181321                        MC_SPEED_UP, &oldUpSpeed,
     1322                        MC_RECHECK_PROGRESS, &oldRecheckProgress,
    13191323                        MC_SPEED_DOWN, &oldDownSpeed,
    13201324                        -1 );
     
    13301334    newUpSpeed = st->pieceUploadSpeed_KBps;
    13311335    newDownSpeed = st->pieceDownloadSpeed_KBps;
     1336    newRecheckProgress = st->recheckProgress;
    13321337    newActivePeerCount = st->peersSendingToUs + st->peersGettingFromUs + st->webseedsSendingToUs;
    13331338    newError = st->error;
     
    13451350        || gtr_strcmp0( oldCollatedName, newCollatedName )
    13461351        || gtr_compare_double( newUpSpeed, oldUpSpeed, 3 )
    1347         || gtr_compare_double( newDownSpeed, oldDownSpeed, 3 ) )
     1352        || gtr_compare_double( newDownSpeed, oldDownSpeed, 3 )
     1353        || gtr_compare_double( newRecheckProgress, oldRecheckProgress, 2 ) )
    13481354    {
    13491355        gtk_list_store_set( GTK_LIST_STORE( model ), iter,
     
    13581364                            MC_SPEED_UP, newUpSpeed,
    13591365                            MC_SPEED_DOWN, newDownSpeed,
     1366                            MC_RECHECK_PROGRESS, newRecheckProgress,
    13601367                            -1 );
    13611368    }
  • trunk/gtk/tr-core.h

    r11802 r11808  
    194194    MC_SPEED_UP,
    195195    MC_SPEED_DOWN,
     196    MC_RECHECK_PROGRESS,
    196197    MC_ACTIVE,
    197198    MC_ACTIVITY,
Note: See TracChangeset for help on using the changeset viewer.