diff options
-rw-r--r-- | macosx/tkMacOSXWm.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index b49ab63..72f8121 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -806,7 +806,6 @@ TkWmMapWindow( /*Add window to Window menu.*/ NSWindow *win = TkMacOSXDrawableWindow(winPtr->window); [win setExcludedFromWindowsMenu:NO]; - } /* @@ -6570,11 +6569,11 @@ TkMacOSXMakeFullscreen( exitFullScreen = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain]; NSImage *exitIcon = [NSImage imageNamed:@"NSExitFullScreenTemplate"]; - [exitFullScreen setImage:exitIcon]; - [exitFullScreen setHighlightMode:YES]; - [exitFullScreen setToolTip:@"Exit Full Screen"]; - [exitFullScreen setTarget:window]; - [exitFullScreen setAction:@selector(restoreOldScreen:)]; + exitFullScreen.button.image = exitIcon; + exitFullScreen.button.cell.highlighted = YES; + exitFullScreen.button.toolTip = @"Exit Full Screen"; + exitFullScreen.button.target = window; + exitFullScreen.button.action = @selector(restoreOldScreen:); #endif Tk_MapWindow((Tk_Window) winPtr); |