~ubuntu-branches/ubuntu/natty/transmission/natty

« back to all changes in this revision

Viewing changes to macosx/PeerTableView.m

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2009-12-08 10:49:11 UTC
  • mfrom: (1.1.29 upstream) (2.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20091208104911-06gio45n2nla3vpg
Tags: 1.80~b1-0ubuntu1
* New upstream release (LP: #460620), rebased on debian unstable
  remaining changes:
  - debian/control:
    + Added replaces & provides clutch (now included as part of transmission).
      Can be removed in lucid+1
    + Added quilt, liblaunchpad-integration-dev and lsb-release 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/transmission-daemon.default:
    - remove --auth from OPTIONS
* Fixes bugs:
  - tray menu shows wrong status for "main window" when started minimized
    (LP: #451415)
* Refreshed patches:
  - dont_build_libevent.patch
  - 99_autoreconf.patch
* Removed patches:
  - 21_onPortTested.diff, 23_tr_torrentNext.diff and
    24_tr_torrentDeleteLocalData_do_move.diff
* debian/patches/21_fix_inhibition.patch:
  - The right value for suspend inhibition is 4
* debian/control:
  - Build-Depend on libgconf2-dev to enable magnet link registration and on
    libcanberra-gtk-dev for notification sound.
* debian/watch:
  - make it detect beta versions, to be removed after 1.80 is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: PeerTableView.m 7659 2009-01-10 23:37:37Z livings124 $
 
2
 * $Id: PeerTableView.m 9521 2009-11-14 03:26:29Z livings124 $
3
3
 * 
4
4
 * Copyright (c) 2007-2009 Transmission authors and contributors
5
5
 *
23
23
 *****************************************************************************/
24
24
 
25
25
#import "PeerTableView.h"
 
26
#import "NSApplicationAdditions.h"
26
27
 
27
28
@implementation PeerTableView
28
29
 
33
34
    {
34
35
        [[NSUserDefaults standardUserDefaults] setBool: ![[NSUserDefaults standardUserDefaults]
35
36
            boolForKey: @"DisplayPeerProgressBarNumber"] forKey: @"DisplayPeerProgressBarNumber"];
36
 
        [self reloadData];
 
37
        
 
38
        if ([NSApp isOnSnowLeopardOrBetter])
 
39
        {
 
40
            NSIndexSet * rowIndexes = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [self numberOfRows])],
 
41
                        * columnIndexes = [NSIndexSet indexSetWithIndex: [self columnAtPoint: point]];
 
42
            [self reloadDataForRowIndexes: rowIndexes columnIndexes: columnIndexes];
 
43
        }
 
44
        else
 
45
            [self reloadData];
37
46
    }
38
47
}
39
48