Changeset 9144 for branches


Ignore:
Timestamp:
Sep 19, 2009, 11:53:04 AM (13 years ago)
Author:
charles
Message:

(1.7x gtk) #2424: Tracker address is not listed in GTK client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/gtk/details.c

    r9097 r9144  
    9292    GtkWidget * last_scrape_response_lb;
    9393    GtkWidget * next_scrape_countdown_lb;
     94    GtkWidget * last_announce_url_lb;
    9495    GtkWidget * last_announce_time_lb;
    9596    GtkWidget * last_announce_response_lb;
     
    17111712    gtk_label_set_text( GTK_LABEL( di->next_scrape_countdown_lb ), str );
    17121713
     1714    /* last_announce_url_lb */
     1715    if( n<1 )
     1716        str = none;
     1717    else {
     1718        const char * baseline = stats[0]->announceURL;
     1719        for( i=1; i<n; ++i)
     1720            if( strcmp( baseline, stats[i]->announceURL ) )
     1721                break;
     1722        if( i==n )
     1723            str = baseline;
     1724        else
     1725            str = mixed;
     1726    }
     1727    gtk_label_set_text( GTK_LABEL( di->last_announce_url_lb ), str );
    17131728
    17141729    /* last_announce_time_lb */
     
    18261841        l = gtk_label_new( NULL );
    18271842        gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
     1843        di->last_announce_url_lb = l;
    18281844        hig_workarea_add_row( t, &row, _( "Tracker:" ), l, NULL );
    18291845
Note: See TracChangeset for help on using the changeset viewer.