X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/cc587a3539612d250d222363b18d15258e33f82a..5508f06f3283b4129cd70340a58ba608cc810d4e:/src/nsmenu.m diff --git a/src/nsmenu.m b/src/nsmenu.m index ddc5dc20a8..10dfe8aac1 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -1,12 +1,12 @@ /* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +the Free Software Foundation, either version 3 of the License, or (at +your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -136,12 +136,6 @@ ns_update_menubar (struct frame *f, bool deep_p, EmacsMenu *submenu) menu = [[EmacsMenu alloc] initWithTitle: ns_app_name]; needsSet = YES; } - else - { /* close up anything on there */ - id attMenu = [menu attachedMenu]; - if (attMenu != nil) - [attMenu close]; - } #if NSMENUPROFILE ftime (&tb); @@ -1293,6 +1287,14 @@ update_frame_tool_bar (struct frame *f) //return [identifierToItem allKeys]; } +- (void)setVisible:(BOOL)shown +{ + NSTRACE ("[EmacsToolbar setVisible:%d]", shown); + + [super setVisible:shown]; +} + + /* optional and unneeded */ /* - toolbarWillAddItem: (NSNotification *)notification { } */ /* - toolbarDidRemoveItem: (NSNotification *)notification { } */