Adium

Changeset 18896

Show
Ignore:
Timestamp:
02/08/2007 01:25:38 PM (2 years ago)
Author:
evands
Message:

Set the target and action of the Fonts toolbar item in the message window such that our custom accessory view will be added. Fixes #6286

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/adium-1.0/Plugins/Dual Window Interface/AIMessageWindowController.m

    r18356 r18896  
    768768} 
    769769 
     770- (void)toolbarWillAddItem:(NSNotification *)notification 
     771{ 
     772        NSToolbarItem *item = [[notification userInfo] objectForKey:@"item"]; 
     773        if ([[item itemIdentifier] isEqualToString:NSToolbarShowFontsItemIdentifier]) { 
     774                [item setTarget:[adium interfaceController]]; 
     775                [item setAction:@selector(toggleFontPanel:)]; 
     776        } 
     777} 
     778 
    770779#pragma mark Miniaturization 
    771780/*!