git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28584 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-09-01 05:58:48 +00:00
parent 883dd963de
commit 929829cb33
2 changed files with 7 additions and 1 deletions

View file

@ -2,6 +2,8 @@
* Source/GSToolTips.m: fix bug #25907 by ensuring windows is fully
displayed before we draw to it, and we then flush our drawing.
* Source/NSMenu.m: fix bug #27344 by telling the menu view that it
needs resizing every time we change menu title (or items).
2009-08-31 Quentin Mathe <quentin.mathe@gmail.com>

View file

@ -676,6 +676,7 @@ static BOOL menuBarVisible = YES;
[_items insertObject: newItem atIndex: index];
_menu.needsSizing = YES;
[(NSMenuView*)_view setNeedsSizing: YES];
// Create the notification for the menu representation.
d = [NSDictionary
@ -748,6 +749,7 @@ static BOOL menuBarVisible = YES;
[anItem setMenu: nil];
[_items removeObjectAtIndex: index];
_menu.needsSizing = YES;
[(NSMenuView*)_view setNeedsSizing: YES];
d = [NSDictionary dictionaryWithObject: [NSNumber numberWithInt: index]
forKey: @"NSMenuItemIndex"];
@ -772,6 +774,7 @@ static BOOL menuBarVisible = YES;
return;
_menu.needsSizing = YES;
[(NSMenuView*)_view setNeedsSizing: YES];
d = [NSDictionary dictionaryWithObject: [NSNumber numberWithInt: index]
forKey: @"NSMenuItemIndex"];
@ -1264,6 +1267,7 @@ static BOOL menuBarVisible = YES;
ASSIGN(_title, aTitle);
_menu.needsSizing = YES;
[(NSMenuView*)_view setNeedsSizing: YES];
if ([_aWindow isVisible] || [_bWindow isVisible])
{
[self sizeToFit];
@ -1695,7 +1699,7 @@ static BOOL menuBarVisible = YES;
if (_menu.transient)
{
NSDebugLLog (@"NSMenu",
@"trying to display while alreay displayed transient");
@"trying to display while already displayed transient");
}
if (_menu.needsSizing)