mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +00:00
Minor fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16144 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b76e5053fd
commit
05668f7a76
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-03-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSMenu.m: ([_updateUserDefaults:]) restore saved menu
|
||||||
|
location functionality (was only working for torn off menus).
|
||||||
|
|
||||||
2003-03-06 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
|
2003-03-06 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
|
||||||
|
|
||||||
* Source/NSMenuView.m: Added NSMenuTitleView (moved
|
* Source/NSMenuView.m: Added NSMenuTitleView (moved
|
||||||
|
|
|
@ -187,7 +187,7 @@ static NSNotificationCenter *nc;
|
||||||
NSNotification *resend;
|
NSNotification *resend;
|
||||||
|
|
||||||
resend = [NSNotification notificationWithName: NSEnqueuedMenuMoveName
|
resend = [NSNotification notificationWithName: NSEnqueuedMenuMoveName
|
||||||
object: self];
|
object: self];
|
||||||
|
|
||||||
[[NSNotificationQueue defaultQueue]
|
[[NSNotificationQueue defaultQueue]
|
||||||
enqueueNotification: resend
|
enqueueNotification: resend
|
||||||
|
@ -214,11 +214,12 @@ static NSNotificationCenter *nc;
|
||||||
defaults = [NSUserDefaults standardUserDefaults];
|
defaults = [NSUserDefaults standardUserDefaults];
|
||||||
menuLocations = [[defaults objectForKey: NSMenuLocationsKey] mutableCopy];
|
menuLocations = [[defaults objectForKey: NSMenuLocationsKey] mutableCopy];
|
||||||
|
|
||||||
if ([_aWindow isVisible] && [self isTornOff])
|
if ([_aWindow isVisible])
|
||||||
{
|
{
|
||||||
if (menuLocations == nil)
|
if (menuLocations == nil)
|
||||||
{
|
{
|
||||||
menuLocations = AUTORELEASE([[NSMutableDictionary alloc] initWithCapacity: 2]);
|
menuLocations = AUTORELEASE([[NSMutableDictionary alloc]
|
||||||
|
initWithCapacity: 2]);
|
||||||
}
|
}
|
||||||
locString = [[self window] stringWithSavedFrame];
|
locString = [[self window] stringWithSavedFrame];
|
||||||
[menuLocations setObject: locString forKey: key];
|
[menuLocations setObject: locString forKey: key];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue