mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
* NSMenu.m->NSMenuMatrix in insertItemWithTitle: removed call to
_resizeMenuForCellSize for performance reasons. _resizeMenuForCellSize is called later on a sizeToFit. * NSMenu.m->NSMenuMatrix in removeItem: removed call to _resizeMenuForCellSize for performance reasons. _resizeMenuForCellSize is called later on a sizeToFit. * NSMenu.m->NSMenu in insertItemWithTitle: replaced call to _menuChanged with menuHasChanged=YES for performance reasons. * NSMenu.m->NSMenu in removeItem: replaced call to _menuChanged with menuHasChanged=YES for performance reasons. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2973 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e77403ce70
commit
24eac4c538
5 changed files with 66 additions and 53 deletions
|
@ -901,7 +901,7 @@ fprintf(stderr, " NSMatrix: selectText --- ");
|
|||
- (id)selectTextAtRow:(int)row column:(int)column
|
||||
{
|
||||
// TODO
|
||||
NSCell* aCell = [self cellAtRow:row column:column];
|
||||
// NSCell* aCell = [self cellAtRow:row column:column];
|
||||
|
||||
fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
|
||||
|
||||
|
@ -1164,7 +1164,7 @@ static MPoint anchor = {0, 0};
|
|||
[NSEvent startPeriodicEventsAfterDelay:0.05 withPeriod:0.05];
|
||||
ASSIGN(lastEvent, theEvent);
|
||||
|
||||
[[self window] captureMouse: self]; // grab the mouse
|
||||
[window captureMouse: self]; // grab the mouse
|
||||
[self lockFocus]; // selection involves two steps, first
|
||||
// a loop that continues until the left
|
||||
while (!done) // mouse goes up; then a series of
|
||||
|
@ -1324,7 +1324,7 @@ static MPoint anchor = {0, 0};
|
|||
lastLocation = [self convertPoint:lastLocation fromView:nil];
|
||||
}
|
||||
|
||||
[[self window] releaseMouse: self]; // Release the mouse
|
||||
[window releaseMouse: self]; // Release the mouse
|
||||
|
||||
switch (mode) // Finish the selection
|
||||
{ // process
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue