Adium

Changeset 18897

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

Merged [18896]: 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
  • trunk/Plugins/Dual Window Interface/AIMessageWindowController.m

    r18355 r18897  
    12401240} 
    12411241 
     1242- (void)toolbarWillAddItem:(NSNotification *)notification 
     1243{ 
     1244        NSToolbarItem *item = [[notification userInfo] objectForKey:@"item"]; 
     1245        if ([[item itemIdentifier] isEqualToString:NSToolbarShowFontsItemIdentifier]) { 
     1246                [item setTarget:[adium interfaceController]]; 
     1247                [item setAction:@selector(toggleFontPanel:)]; 
     1248        } 
     1249} 
     1250 
    12421251#pragma mark Miniaturization 
    12431252/*!