summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2018-10-26 18:15:45 (GMT)
committerculler <culler>2018-10-26 18:15:45 (GMT)
commit3b82ef16195984643614309400a486ed32c786e3 (patch)
treec98e105de2fd4395b7a570b992f332102997621b /macosx
parentabef80665370e7a36e3e2c8ba6d2b2cf713cbfeb (diff)
downloadtk-3b82ef16195984643614309400a486ed32c786e3.zip
tk-3b82ef16195984643614309400a486ed32c786e3.tar.gz
tk-3b82ef16195984643614309400a486ed32c786e3.tar.bz2
Addressed a few deprecations in the Fullscreen implementation.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c11
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);