Changeset 6229


Ignore:
Timestamp:
Jun 19, 2008, 1:11:25 PM (13 years ago)
Author:
charles
Message:

(gtk) #1042: Manual Announce allowed when Never

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r6199 r6229  
    12391239
    12401240static void
    1241 refresh_countdown_lb( GtkWidget * l, time_t t )
     1241refresh_countdown_lb( GtkWidget * l, time_t t,
     1242                      const char * countdown_done )
    12421243{
    12431244    const time_t now = time( NULL );
    12441245
    12451246    if( !t || ( t < now ) )
    1246         gtk_label_set_text( GTK_LABEL( l ), _( "Never" ) );
     1247        gtk_label_set_text( GTK_LABEL( l ), countdown_done );
    12471248    else {
    12481249        char buf[1024];
     
    12701271    l = page->next_scrape_countdown_lb;
    12711272    t = torStat->nextScrapeTime;
    1272     refresh_countdown_lb( l, t );
     1273    refresh_countdown_lb( l, t, _( "Never" ) );
    12731274
    12741275    l = page->last_announce_time_lb;
     
    12811282    l = page->next_announce_countdown_lb;
    12821283    t = torStat->nextAnnounceTime;
    1283     refresh_countdown_lb( l, t );
     1284    refresh_countdown_lb( l, t, _( "Never" ) );
    12841285
    12851286    l = page->manual_announce_countdown_lb;
    12861287    t = torStat->manualAnnounceTime;
    1287     refresh_countdown_lb( l, t );
     1288    refresh_countdown_lb( l, t, _( "Now" ) );
    12881289}
    12891290
Note: See TracChangeset for help on using the changeset viewer.