mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Use _trackWithEvent: instead of trackWithEvent: to have just one mouse capture call.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32629 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2cb8461350
commit
486fa5a2eb
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSMenuView.m (-_trackWithEvent:): Use _trackWithEvent:
|
||||
instead of trackWithEvent: to have just one mouse capture call.
|
||||
|
||||
2011-03-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSOutlineView.m (-namesOfPromisedFilesDroppedAtDestination:),
|
||||
|
|
|
@ -1628,7 +1628,7 @@ static NSMapTable *viewInfo = 0;
|
|||
setHighlightedItemIndex: -1];
|
||||
|
||||
candidateMenuResult = [[candidateMenu menuRepresentation]
|
||||
trackWithEvent: original];
|
||||
_trackWithEvent: original];
|
||||
return candidateMenuResult;
|
||||
}
|
||||
|
||||
|
@ -1642,7 +1642,7 @@ static NSMapTable *viewInfo = 0;
|
|||
BOOL subMenuResult;
|
||||
|
||||
subMenuResult
|
||||
= [[self attachedMenuView] trackWithEvent: original];
|
||||
= [[self attachedMenuView] _trackWithEvent: original];
|
||||
if (subMenuResult
|
||||
&& wasTransient == [_attachedMenu isTransient])
|
||||
{
|
||||
|
@ -1676,8 +1676,8 @@ static NSMapTable *viewInfo = 0;
|
|||
index != [mainWindowMenuView highlightedItemIndex])
|
||||
{
|
||||
[self setHighlightedItemIndex: -1];
|
||||
return [[[[NSApp mainWindow] menu] menuRepresentation]
|
||||
trackWithEvent: original];
|
||||
return [mainWindowMenuView
|
||||
_trackWithEvent: original];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue