Changeset 440 for trunk


Ignore:
Timestamp:
03/05/08 11:36:21 (17 years ago)
Author:
Nicholas Riley
Message:

Fix user key equivalents showing in contextual Services menu in 10.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEE.m

    r437 r440  
    350350
    351351NSMenuItem *ICCF_ContextualServicesMenuItem() {
     352    // user key equivalents get populated in 10.4, not in 10.5
     353    BOOL usesUserKeyEquivalents = [NSMenuItem usesUserKeyEquivalents];
     354    if (usesUserKeyEquivalents) {
     355        ICCF_SetServicesMenu([NSApp servicesMenu]); // populate menubar menu with key equivalents
     356        [NSMenuItem setUsesUserKeyEquivalents: NO];
     357    }
     358   
    352359    NSMenuItem *servicesItem = ICCF_ServicesMenuItem();
     360
     361    if (usesUserKeyEquivalents)
     362        [NSMenuItem setUsesUserKeyEquivalents: YES];
     363
    353364    NSDictionary *servicesInfo = ICCF_GetServicesInfo(); // XXX cache/retain
    354365    if (ICCF_ConsolidateServicesMenu([servicesItem submenu], (NSDictionary *)ICCF_prefs.serviceOptions, servicesInfo))
Note: See TracChangeset for help on using the changeset viewer.