mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 19:30:59 +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
5de602dfb4
commit
899ba50b1f
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>
|
2003-04-17 Serg Stoyan <stoyan@hologr.com>
|
||||||
|
|
||||||
* Source/NSMenuItemCell.m:
|
* Source/NSMenuItemCell.m:
|
||||||
(setMenuView:): Setting image position and
|
(setMenuView:): Removed setting image position and
|
||||||
_mcell_belongs_to_popupbutton ivar for popup button cell.
|
_mcell_belongs_to_popupbutton ivar for popup button cell.
|
||||||
(calcSize): Removed code from setMenuView placed here.
|
(calcSize): Removed code from setMenuView placed here.
|
||||||
|
|
||||||
|
|
|
@ -1317,7 +1317,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
||||||
originalTopLeft.y += originalFrame.size.height;
|
originalTopLeft.y += originalFrame.size.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
[NSEvent startPeriodicEventsAfterDelay: 0.1 withPeriod: 0.05];
|
[NSEvent startPeriodicEventsAfterDelay: 0.1 withPeriod: 0.01];
|
||||||
[self trackWithEvent: theEvent];
|
[self trackWithEvent: theEvent];
|
||||||
[NSEvent stopPeriodicEvents];
|
[NSEvent stopPeriodicEvents];
|
||||||
|
|
||||||
|
@ -1532,7 +1532,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
||||||
/* Get the next event, blocking if necessary.
|
/* Get the next event, blocking if necessary.
|
||||||
* No limit, block until we get an event. */
|
* No limit, block until we get an event. */
|
||||||
theEvent = [NSApp nextEventMatchingMask: eventMask
|
theEvent = [NSApp nextEventMatchingMask: eventMask
|
||||||
untilDate: nil
|
untilDate: nil
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue