I saw Richard corrected one of my mistakes in the
code for storing the menu locations.
But there is still another problem left.
Now it remembers the attached menus as well and
will restore them as tornoff menus when restarting.
This is not desirable and this patch fixes this.
Wim Oudshoorn.
2003-03-07 Willem Rein Oudshoorn <[EMAIL PROTECTED]>
* Source/NSMenu.m ([NSMenu -_updateUserDefaults:]): Do not store
location for attached menus.
Index: Source/NSMenu.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSMenu.m,v
retrieving revision 1.110
diff -u -r1.110 NSMenu.m
--- Source/NSMenu.m 7 Mar 2003 06:03:01 -0000 1.110
+++ Source/NSMenu.m 7 Mar 2003 20:58:47 -0000
@@ -214,7 +214,7 @@
defaults = [NSUserDefaults standardUserDefaults];
menuLocations = [[defaults objectForKey: NSMenuLocationsKey] mutableCopy];
- if ([_aWindow isVisible])
+ if ([_aWindow isVisible] && ([self isTornOff] || ([NSApp mainMenu] == self)))
{
if (menuLocations == nil)
{
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep