Changeset 718


Ignore:
Timestamp:
Aug 2, 2006, 12:29:10 AM (15 years ago)
Author:
livings124
Message:

Simplify new Open menu item text.

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r716 r718  
    3232        <key>IBOpenObjects</key>
    3333        <array>
     34                <integer>29</integer>
    3435                <integer>21</integer>
    35                 <integer>29</integer>
    3636        </array>
    3737        <key>IBSystem Version</key>
  • trunk/macosx/MenuButton.m

    r497 r718  
    3232    [self setImage: [self alternateImage]];
    3333
     34    //approximate height of menu...alright for now
     35    /*float menuHeight = ((float)[[self menu] numberOfItems] + 2.0) * [NSMenuView menuBarHeight];
     36    BOOL moveToTop = menuHeight > [[self window] frame].origin.y;*/
     37
     38    NSPoint point = NSMakePoint(3.0, /*moveToTop ? [self frame].size.height + menuHeight :*/ -2.0);
     39
    3440    NSEvent * newEvent= [NSEvent mouseEventWithType: [event type]
    35                         location: NSMakePoint(3, -2)
    36                         modifierFlags: [event modifierFlags]
    37                         timestamp: [event timestamp]
    38                         windowNumber: [event windowNumber]
    39                         context: [event context]
    40                         eventNumber: [event eventNumber]
    41                         clickCount: [event clickCount]
    42                         pressure: [event pressure]];
     41                            location: point
     42                            modifierFlags: [event modifierFlags]
     43                            timestamp: [event timestamp]
     44                            windowNumber: [event windowNumber]
     45                            context: [event context]
     46                            eventNumber: [event eventNumber]
     47                            clickCount: [event clickCount]
     48                            pressure: [event pressure]];
    4349
    4450    [NSMenu popUpContextMenu: [self menu] withEvent: newEvent forView: self];
Note: See TracChangeset for help on using the changeset viewer.