From 3b82ef16195984643614309400a486ed32c786e3 Mon Sep 17 00:00:00 2001 From: culler Date: Fri, 26 Oct 2018 18:15:45 +0000 Subject: Addressed a few deprecations in the Fullscreen implementation. --- macosx/tkMacOSXWm.c | 11 +++++------ 1 file 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); -- cgit v0.12