mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:42:39 +00:00
use built-in general and advanced images in the preferences window on Leopard
This commit is contained in:
parent
2216967525
commit
14c90560fc
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@
|
|||
*****************************************************************************/
|
||||
|
||||
#import "PrefsController.h"
|
||||
#import "NSApplicationAdditions.h"
|
||||
#import "NSStringAdditions.h"
|
||||
#import "UKKQueue.h"
|
||||
|
||||
|
@ -158,7 +159,7 @@
|
|||
if ([ident isEqualToString: TOOLBAR_GENERAL])
|
||||
{
|
||||
[item setLabel: NSLocalizedString(@"General", "Preferences -> General toolbar item title")];
|
||||
[item setImage: [NSImage imageNamed: @"Preferences.png"]];
|
||||
[item setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] ? NSImageNamePreferencesGeneral : @"Preferences.png"]];
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(setPrefView:)];
|
||||
[item setAutovalidates: NO];
|
||||
|
@ -182,7 +183,7 @@
|
|||
else if ([ident isEqualToString: TOOLBAR_ADVANCED])
|
||||
{
|
||||
[item setLabel: NSLocalizedString(@"Advanced", "Preferences -> Advanced toolbar item title")];
|
||||
[item setImage: [NSImage imageNamed: @"Advanced.png"]];
|
||||
[item setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] ? NSImageNameAdvanced : @"Advanced.png"]];
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(setPrefView:)];
|
||||
[item setAutovalidates: NO];
|
||||
|
|
Loading…
Add table
Reference in a new issue