~ubuntu-branches/ubuntu/maverick/transmission/maverick-updates

« back to all changes in this revision

Viewing changes to gtk/details.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson, Krzysztof Klimonda, Chris Coulson
  • Date: 2009-09-09 09:06:11 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20090909090611-09ai2hyo66h1dhv8
Tags: 1.74-0ubuntu1
[ Krzysztof Klimonda ]
* Merge from debian unstable, remaining changes:
  - debian/control:
    + Added replaces & provides clutch (now included as part of transmission).
    + add liblaunchpad-integration to Build-Depends
  - debian/rules:
    + Create a PO template during package build.
  - debian/patches/01_lpi.patch:
    + Integrate Transmission with Launchpad
  - debian/patches/20_add_X-Ubuntu-Gettext-Domain.diff:
    + Add X-Ubuntu-Gettext-Domain to .desktop file.
* debian/control:
  - add lsb-release to Build-Depends
* This includes the QT client in transmission-qt.

[ Chris Coulson ]
* Update to new upstream version 1.74 (LP: #418367):
  - Better data recovery in the case of an OS or Transmission crash
  - If a data file is moved, stop the torrent instead of redownloading 
    it (LP: #419304).
  - Fix bug that didn't list some peers in the resume file and in PEX
  - More helpful torrent error messages
  - DHT now honors the bind-address-ipv4 configuration option
  - Fix Debian build error with miniupnpc
  - Fix Cygwin build error with strtold
  - Update to a newer snapshot of miniupnpc
  - Fix crash that occurred when adding torrents on some desktops
  - Synchronize the statusbar's and torrent list's speeds
  - Fix the Properties dialog's "Origin" field for multiple torrents
* debian/rules, debian/control:
  - Don't run autoreconf at build time and don't build-dep on libtool.
* debian/control:
  - transmission-common replaces transmission-gtk (<< 1.74) rather than
    (<= 1.73-1).
* Refreshed patches:
  - 01_lpi.patch.
  - dont_build_libevent.patch.
  - qt_client_use_system_libevent.patch.
* Dropped patches not needed anymore:
  - updateminiupnpcstrings_double_escape_slash.patch
* Added 99_autoreconf.patch for autotools update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: details.c 8830 2009-07-18 01:04:27Z charles $
 
10
 * $Id: details.c 8889 2009-08-10 20:04:08Z charles $
11
11
 */
12
12
 
13
13
#include <assert.h>
231
231
            set_togglebutton_if_different( di->honorLimitsCheck,
232
232
                                           di->honorLimitsCheckTag, baseline );
233
233
    }
234
 
    
 
234
 
235
235
    /* downLimitedCheck */
236
236
    if( n ) {
237
237
        const tr_bool baseline = tr_torrentUsesSpeedLimit( torrents[0], TR_DOWN );
255
255
            set_int_spin_if_different( di->downLimitSpin,
256
256
                                       di->downLimitSpinTag, baseline );
257
257
    }
258
 
    
 
258
 
259
259
    /* upLimitedCheck */
260
260
    if( n ) {
261
261
        const tr_bool baseline = tr_torrentUsesSpeedLimit( torrents[0], TR_UP );
576
576
    hig_workarea_add_wide_control( t, &row, h );
577
577
    d->seedCustomSpin = w;
578
578
    d->seedCustomSpinTag = tag;
579
 
   
 
579
 
580
580
    hig_workarea_add_section_divider( t, &row );
581
581
    hig_workarea_add_section_title( t, &row, _( "Peer Connections" ) );
582
582
 
659
659
        }
660
660
        if( mixed_date && mixed_creator )
661
661
            str = mixed;
662
 
        else if( mixed_date )
663
 
            g_snprintf( buf, sizeof( buf ), _( "Created by %1$s" ), creator );
664
 
        else if( mixed_creator || !*creator )
665
 
            g_snprintf( buf, sizeof( buf ), _( "Created on %1$s" ), datestr );
666
 
        else
667
 
            g_snprintf( buf, sizeof( buf ), _( "Created by %1$s on %2$s" ), creator, datestr );
668
 
        str = buf;
 
662
        else {
 
663
            if( mixed_date )
 
664
                g_snprintf( buf, sizeof( buf ), _( "Created by %1$s" ), creator );
 
665
            else if( mixed_creator || !*creator )
 
666
                g_snprintf( buf, sizeof( buf ), _( "Created on %1$s" ), datestr );
 
667
            else
 
668
                g_snprintf( buf, sizeof( buf ), _( "Created by %1$s on %2$s" ), creator, datestr );
 
669
            str = buf;
 
670
        }
669
671
    }
670
672
    gtk_label_set_text( GTK_LABEL( di->origin_lb ), str );
671
673
 
685
687
    }
686
688
    gtk_text_buffer_set_text( di->comment_buffer, str, -1 );
687
689
 
688
 
    /* destination_lb */        
 
690
    /* destination_lb */
689
691
    if( n<=0 )
690
692
        str = none;
691
693
    else {
803
805
    }
804
806
    gtk_label_set_text( GTK_LABEL( di->have_lb ), str );
805
807
 
806
 
    
 
808
 
807
809
    /* dl_lb */
808
810
    if( n <= 0 )
809
811
        str = none;
824
826
    }
825
827
    gtk_label_set_text( GTK_LABEL( di->dl_lb ), str );
826
828
 
827
 
    
 
829
 
828
830
    /* ul_lb */
829
831
    if( n <= 0 )
830
832
        str = none;
854
856
    if( n<=0 )
855
857
        str = none;
856
858
    else if ( n==1 )
857
 
        str = infos[0]->hashString; 
 
859
        str = infos[0]->hashString;
858
860
    else
859
861
        str = mixed;
860
862
    gtk_label_set_text( GTK_LABEL( di->hash_lb ), str );
1252
1254
    GHashTable * hash = di->webseed_hash;
1253
1255
    GtkListStore * store = di->webseed_store;
1254
1256
    GtkTreeModel * model = GTK_TREE_MODEL( store );
1255
 
    
 
1257
 
1256
1258
    /* step 1: mark all webseeds as not-updated */
1257
1259
    if( gtk_tree_model_get_iter_first( model, &iter ) ) do
1258
1260
        gtk_list_store_set( store, &iter, WEBSEED_COL_WAS_UPDATED, FALSE, -1 );
1403
1405
                case 'O': s = _( "Optimistic unchoke" ); break;
1404
1406
                case 'D': s = _( "Downloading from this peer" ); break;
1405
1407
                case 'd': s = _( "We would download from this peer if they would let us" ); break;
1406
 
                case 'U': s = _( "Uploading to peer" ); break; 
 
1408
                case 'U': s = _( "Uploading to peer" ); break;
1407
1409
                case 'u': s = _( "We would upload to this peer if they asked" ); break;
1408
1410
                case 'K': s = _( "Peer has unchoked us, but we're not interested" ); break;
1409
1411
                case '?': s = _( "We unchoked this peer, but they're not interested" ); break;
1410
 
                case 'E': s = _( "Encrypted connection" ); break; 
 
1412
                case 'E': s = _( "Encrypted connection" ); break;
1411
1413
                case 'X': s = _( "Peer was discovered through Peer Exchange (PEX)" ); break;
1412
1414
                case 'H': s = _( "Peer was discovered through DHT" ); break;
1413
1415
                case 'I': s = _( "Peer is an incoming connection" ); break;
1961
1963
 
1962
1964
        file_list_set_torrent( di->file_list, id );
1963
1965
        tracker_list_set_torrent( di->tracker_list, id );
1964
 
        
1965
1966
    }
1966
1967
   else
1967
1968
   {