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

« back to all changes in this revision

Viewing changes to macosx/FileOutlineView.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: FileOutlineView.m 8533 2009-05-26 00:29:36Z livings124 $
 
2
 * $Id: FileOutlineView.m 9267 2009-10-10 13:21:27Z livings124 $
3
3
 * 
4
4
 * Copyright (c) 2007-2009 Transmission authors and contributors
5
5
 *
23
23
 *****************************************************************************/
24
24
 
25
25
#import "InfoWindowController.h"
 
26
#import "FileListNode.h"
 
27
#import "FileNameCell.h"
26
28
#import "FileOutlineView.h"
27
 
#import "FileNameCell.h"
28
29
#import "FilePriorityCell.h"
29
30
#import "Torrent.h"
30
 
#import "FileListNode.h"
31
 
#import "QuickLookController.h"
 
31
#import "NSApplicationAdditions.h"
 
32
#import <Quartz/Quartz.h>
32
33
 
33
34
@implementation FileOutlineView
34
35
 
90
91
    const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
91
92
    
92
93
    //don't allow quick look on add window
93
 
    if (firstChar == ' ' && [[[self window] windowController] isKindOfClass: [InfoWindowController class]])
94
 
        [[QuickLookController quickLook] toggleQuickLook];
95
 
    else if (firstChar == NSRightArrowFunctionKey)
96
 
        [[QuickLookController quickLook] pressRight];
97
 
    else if (firstChar == NSLeftArrowFunctionKey)
98
 
        [[QuickLookController quickLook] pressLeft];
99
 
    else;
 
94
    #warning get rid of conversion of protocol and replace with @protocol(QLPreviewPanelDataSource)
 
95
    if ([NSApp isOnSnowLeopardOrBetter] && firstChar == ' ' && [[[self window] windowController] conformsToProtocol: NSProtocolFromString(@"QLPreviewPanelDataSource")])
 
96
    {
 
97
        if ([[QLPreviewPanelSL sharedPreviewPanel] isVisible])
 
98
            [[QLPreviewPanelSL sharedPreviewPanel] orderOut: nil];
 
99
        else
 
100
            [[QLPreviewPanelSL sharedPreviewPanel] makeKeyAndOrderFront: nil];
 
101
    }
100
102
    
101
103
    [super keyDown: event];  
102
104
}