Changeset 14339
- Timestamp:
- 12/06/2005 05:47:24 PM (3 years ago)
- Files:
-
- trunk/Plugins/Dual Window Interface/AIMessageWindowController.m (modified) (1 diff)
- trunk/Plugins/Dual Window Interface/ESChatUserListController.m (modified) (1 diff)
- trunk/Plugins/WebKit Message View/AIWebKitMessageViewController.m (modified) (2 diffs)
- trunk/Source/AIChatController.m (modified) (1 diff)
- trunk/Source/AIContactListEditorPlugin.m (modified) (1 diff)
- trunk/Source/AIInterfaceController.m (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plugins/Dual Window Interface/AIMessageWindowController.m
r13685 r14339 428 428 - (NSMenu *)customTabView:(AICustomTabsView *)tabView menuForTabViewItem:(NSTabViewItem *)tabViewItem 429 429 { 430 AIListContact *selectedObject = [[(AIMessageTabViewItem *)tabViewItem chat] listObject]; 431 NSMenu *tmp=nil; 432 430 AIChat *chat = [(AIMessageTabViewItem *)tabViewItem chat]; 431 AIListContact *selectedObject = [chat listObject]; 432 NSMenu *tmp = nil; 433 433 434 if (selectedObject) { 434 435 NSArray *locations; 435 436 if ([selectedObject isStranger]) { 436 locations = [NS Array arrayWithObjects:437 locations = [NSMutableArray arrayWithObjects: 437 438 [NSNumber numberWithInt:Context_Contact_Manage], 438 439 [NSNumber numberWithInt:Context_Contact_Action], 439 440 [NSNumber numberWithInt:Context_Contact_NegativeAction], 440 [NSNumber numberWithInt:Context_Contact_ TabAction],441 [NSNumber numberWithInt:Context_Contact_Stranger_ TabAction],441 [NSNumber numberWithInt:Context_Contact_ChatAction], 442 [NSNumber numberWithInt:Context_Contact_Stranger_ChatAction], 442 443 [NSNumber numberWithInt:Context_Contact_Additions], nil]; 443 444 } else { 444 locations = [NS Array arrayWithObjects:445 locations = [NSMutableArray arrayWithObjects: 445 446 [NSNumber numberWithInt:Context_Contact_Manage], 446 447 [NSNumber numberWithInt:Context_Contact_Action], 447 448 [NSNumber numberWithInt:Context_Contact_NegativeAction], 448 [NSNumber numberWithInt:Context_Contact_ TabAction],449 [NSNumber numberWithInt:Context_Contact_ChatAction], 449 450 [NSNumber numberWithInt:Context_Contact_Additions], nil]; 450 451 } 451 452 453 [locations addObject:[NSNumber numberWithInt:Context_Tab_Action]]; 454 452 455 tmp = [[adium menuController] contextualMenuWithLocations:locations 453 forListObject:selectedObject]; 456 forListObject:selectedObject 457 inChat:chat]; 454 458 455 459 } trunk/Plugins/Dual Window Interface/ESChatUserListController.m
r12862 r14339 40 40 { 41 41 NSArray *locationsArray = [NSArray arrayWithObjects: 42 [NSNumber numberWithInt:Context_Contact_ ChatAction],42 [NSNumber numberWithInt:Context_Contact_GroupChatAction], 43 43 [NSNumber numberWithInt:Context_Contact_Manage], 44 44 [NSNumber numberWithInt:Context_Contact_Action], trunk/Plugins/WebKit Message View/AIWebKitMessageViewController.m
r13395 r14339 709 709 [NSNumber numberWithInt:Context_Contact_Action], 710 710 [NSNumber numberWithInt:Context_Contact_NegativeAction], 711 [NSNumber numberWithInt:Context_Contact_ TabAction],712 [NSNumber numberWithInt:Context_Contact_Stranger_ TabAction],711 [NSNumber numberWithInt:Context_Contact_ChatAction], 712 [NSNumber numberWithInt:Context_Contact_Stranger_ChatAction], 713 713 [NSNumber numberWithInt:Context_Contact_Additions], nil]; 714 714 } else { … … 717 717 [NSNumber numberWithInt:Context_Contact_Action], 718 718 [NSNumber numberWithInt:Context_Contact_NegativeAction], 719 [NSNumber numberWithInt:Context_Contact_ TabAction],719 [NSNumber numberWithInt:Context_Contact_ChatAction], 720 720 [NSNumber numberWithInt:Context_Contact_Additions], nil]; 721 721 } trunk/Source/AIChatController.m
r14113 r14339 73 73 action:@selector(toggleIgnoreOfContact:) 74 74 keyEquivalent:@""]; 75 [[adium menuController] addContextualMenuItem:menuItem_ignore toLocation:Context_Contact_ ChatAction];75 [[adium menuController] addContextualMenuItem:menuItem_ignore toLocation:Context_Contact_GroupChatAction]; 76 76 77 77 [adiumChatEvents controllerDidLoad]; trunk/Source/AIContactListEditorPlugin.m
r14062 r14339 84 84 action:@selector(addContactFromTab:) 85 85 keyEquivalent:@""] autorelease]; 86 [[adium menuController] addContextualMenuItem:menuItem_tabAddContact toLocation:Context_Contact_Stranger_ TabAction];86 [[adium menuController] addContextualMenuItem:menuItem_tabAddContact toLocation:Context_Contact_Stranger_ChatAction]; 87 87 88 88 [[adium notificationCenter] addObserver:self trunk/Source/AIInterfaceController.m
r14251 r14339 43 43 #import <Adium/KFTypeSelectTableView.h> 44 44 45 46 #define CLOSE_CHAT_MENU_TITLE AILocalizedString(@"Close Chat","Title for the close chat menu item")47 #define CLOSE_MENU_TITLE AILocalizedString(@"Close","Title for the close menu item")48 #define CLOSE_ALL_TABS_MENU_TITLE AILocalizedString(@"Close All Chats","Title for the close all chats menu item")49 50 45 #define ERROR_MESSAGE_WINDOW_TITLE AILocalizedString(@"Adium : Error","Error message window title") 51 46 #define LABEL_ENTRY_SPACING 4.0 … … 162 157 [menuItem release]; 163 158 159 menuItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:AILocalizedString(@"Close Chat","Title for the close chat menu item") 160 target:self 161 action:@selector(closeContextualChat:) 162 keyEquivalent:@""]; 163 [menuController addContextualMenuItem:menuItem toLocation:Context_Tab_Action]; 164 [menuItem release]; 165 166 164 167 //Observe preference changes 165 168 [[adium preferenceController] registerPreferenceObserver:self forGroup:PREF_GROUP_INTERFACE]; … … 349 352 - (void)closeChat:(AIChat *)inChat 350 353 { 351 [interfacePlugin closeChat:inChat]; 354 if (inChat) { 355 [interfacePlugin closeChat:inChat]; 356 } 352 357 } 353 358 … … 536 541 { 537 542 if (activeChat) [self closeChat:activeChat]; 543 } 544 545 - (IBAction)closeContextualChat:(id)sender 546 { 547 [self closeChat:[[adium menuController] currentContextMenuChat]]; 538 548 } 539 549 … … 1232 1242 NSDictionary *typingAttributes = [(NSTextView *)responder typingAttributes]; 1233 1243 NSColor *foregroundColor, *backgroundColor; 1234 NSLog(@"Typing attributes are %@",typingAttributes); 1244 1235 1245 if ((foregroundColor = [typingAttributes objectForKey:NSForegroundColorAttributeName])) { 1236 1246 [[adium preferenceController] setPreference:[foregroundColor stringRepresentation]