Changeset 3646


Ignore:
Timestamp:
Oct 29, 2007, 8:57:36 PM (15 years ago)
Author:
livings124
Message:

use built-in general and advanced images in the preferences window on Leopard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r3611 r3646  
    2424
    2525#import "PrefsController.h"
     26#import "NSApplicationAdditions.h"
    2627#import "NSStringAdditions.h"
    2728#import "UKKQueue.h"
     
    159160    {
    160161        [item setLabel: NSLocalizedString(@"General", "Preferences -> General toolbar item title")];
    161         [item setImage: [NSImage imageNamed: @"Preferences.png"]];
     162        [item setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] ? NSImageNamePreferencesGeneral : @"Preferences.png"]];
    162163        [item setTarget: self];
    163164        [item setAction: @selector(setPrefView:)];
     
    183184    {
    184185        [item setLabel: NSLocalizedString(@"Advanced", "Preferences -> Advanced toolbar item title")];
    185         [item setImage: [NSImage imageNamed: @"Advanced.png"]];
     186        [item setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] ? NSImageNameAdvanced : @"Advanced.png"]];
    186187        [item setTarget: self];
    187188        [item setAction: @selector(setPrefView:)];
Note: See TracChangeset for help on using the changeset viewer.