mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
[NSMenuView mouseDown:] Generate periodic events every 0.01 seconds
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16486 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ecb08cca22
commit
ec2a39cf4a
2 changed files with 8 additions and 3 deletions
|
@ -1,7 +1,12 @@
|
|||
2003-04-21 Serg Stoyan <stoyan@hologr.com>
|
||||
|
||||
* Source/NSMenuView.m:
|
||||
(mouseDown:): Generate periodic events every 0.01 seconds.
|
||||
|
||||
2003-04-17 Serg Stoyan <stoyan@hologr.com>
|
||||
|
||||
* Source/NSMenuItemCell.m:
|
||||
(setMenuView:): Setting image position and
|
||||
(setMenuView:): Removed setting image position and
|
||||
_mcell_belongs_to_popupbutton ivar for popup button cell.
|
||||
(calcSize): Removed code from setMenuView placed here.
|
||||
|
||||
|
|
|
@ -1317,7 +1317,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
originalTopLeft.y += originalFrame.size.height;
|
||||
}
|
||||
|
||||
[NSEvent startPeriodicEventsAfterDelay: 0.1 withPeriod: 0.05];
|
||||
[NSEvent startPeriodicEventsAfterDelay: 0.1 withPeriod: 0.01];
|
||||
[self trackWithEvent: theEvent];
|
||||
[NSEvent stopPeriodicEvents];
|
||||
|
||||
|
@ -1532,7 +1532,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
/* Get the next event, blocking if necessary.
|
||||
* No limit, block until we get an event. */
|
||||
theEvent = [NSApp nextEventMatchingMask: eventMask
|
||||
untilDate: nil
|
||||
untilDate: nil
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue