mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 01:11:07 +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
1a0c431060
commit
6dd53d2980
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>
|
2011-03-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSOutlineView.m (-namesOfPromisedFilesDroppedAtDestination:),
|
* Source/NSOutlineView.m (-namesOfPromisedFilesDroppedAtDestination:),
|
||||||
|
|
|
@ -1628,7 +1628,7 @@ static NSMapTable *viewInfo = 0;
|
||||||
setHighlightedItemIndex: -1];
|
setHighlightedItemIndex: -1];
|
||||||
|
|
||||||
candidateMenuResult = [[candidateMenu menuRepresentation]
|
candidateMenuResult = [[candidateMenu menuRepresentation]
|
||||||
trackWithEvent: original];
|
_trackWithEvent: original];
|
||||||
return candidateMenuResult;
|
return candidateMenuResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1642,7 +1642,7 @@ static NSMapTable *viewInfo = 0;
|
||||||
BOOL subMenuResult;
|
BOOL subMenuResult;
|
||||||
|
|
||||||
subMenuResult
|
subMenuResult
|
||||||
= [[self attachedMenuView] trackWithEvent: original];
|
= [[self attachedMenuView] _trackWithEvent: original];
|
||||||
if (subMenuResult
|
if (subMenuResult
|
||||||
&& wasTransient == [_attachedMenu isTransient])
|
&& wasTransient == [_attachedMenu isTransient])
|
||||||
{
|
{
|
||||||
|
@ -1676,8 +1676,8 @@ static NSMapTable *viewInfo = 0;
|
||||||
index != [mainWindowMenuView highlightedItemIndex])
|
index != [mainWindowMenuView highlightedItemIndex])
|
||||||
{
|
{
|
||||||
[self setHighlightedItemIndex: -1];
|
[self setHighlightedItemIndex: -1];
|
||||||
return [[[[NSApp mainWindow] menu] menuRepresentation]
|
return [mainWindowMenuView
|
||||||
trackWithEvent: original];
|
_trackWithEvent: original];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue