Changeset 1028


Ignore:
Timestamp:
Oct 24, 2006, 9:04:40 PM (15 years ago)
Author:
livings124
Message:

proper title in prefs window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r1027 r1028  
    917917    windowRect.origin.y -= difference;
    918918    windowRect.size.height += difference;
    919 
    920     [window setTitle: [fToolbar selectedItemIdentifier]];
    921919   
    922920    [view setHidden: YES];
     
    924922    [window setFrame: windowRect display: YES animate: YES];
    925923    [view setHidden: NO];
     924   
     925    NSToolbarItem * item;
     926    NSEnumerator * enumerator = [[fToolbar items] objectEnumerator];
     927    while ((item = [enumerator nextObject]))
     928        if ([[item itemIdentifier] isEqualToString: [fToolbar selectedItemIdentifier]])
     929        {
     930            [window setTitle: [item label]];
     931            break;
     932        }
    926933}
    927934
Note: See TracChangeset for help on using the changeset viewer.