mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Replace nil with [NSDate distantFuture] in calls to nextEventMatchingMask:...dequeue:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cfea3dbe6b
commit
7c2e8efcd8
11 changed files with 28 additions and 14 deletions
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
2009-03-02 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSSliderCell.m,
|
||||
* Source/NSTableHeaderView.m,
|
||||
* Source/NSWindow.m,
|
||||
* Source/GSStandardWindowDecorationView.m,
|
||||
* Source/NSControl.m,
|
||||
* Source/NSScroller.m,
|
||||
* Source/NSTextView.m,
|
||||
* Source/NSComboBoxCell.m,
|
||||
* Source/NSStepperCell.m,
|
||||
* Source/NSCell.m: Replace nil with [NSDate distantFuture] in
|
||||
calls to nextEventMatchingMask:...dequeue:.
|
||||
|
||||
2009-03-01 20:17-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSApplication.m: Fix bug #24643. Application icon is no
|
||||
|
|
|
@ -413,7 +413,7 @@ static NSColor *titleColor[3];
|
|||
|
||||
|
||||
currentEvent = [_window nextEventMatchingMask: mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
} while ([currentEvent type] != NSLeftMouseUp);
|
||||
|
@ -510,7 +510,7 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
|
|||
break;
|
||||
|
||||
currentEvent = [_window nextEventMatchingMask: mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
} while ([currentEvent type] != NSLeftMouseUp);
|
||||
|
|
|
@ -1608,7 +1608,7 @@ static NSColor *dtxtCol;
|
|||
theEvent = [NSApp currentEvent];
|
||||
else
|
||||
theEvent = [theApp nextEventMatchingMask: event_mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
|
||||
|
@ -1689,7 +1689,7 @@ static NSColor *dtxtCol;
|
|||
|
||||
if (!done)
|
||||
theEvent = [theApp nextEventMatchingMask: event_mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
}
|
||||
|
|
|
@ -1627,7 +1627,7 @@ static inline NSRect buttonCellFrameFromRect(NSRect cellRect)
|
|||
if (isMouseUp == NO)
|
||||
{
|
||||
e = [NSApp nextEventMatchingMask: eventMask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
|
||||
|
|
|
@ -897,7 +897,7 @@ static NSNotificationCenter *nc;
|
|||
}
|
||||
|
||||
e = [NSApp nextEventMatchingMask: event_mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
if ([e type] == NSLeftMouseUp)
|
||||
|
|
|
@ -846,7 +846,7 @@ static const float buttonsOffset = 2; // buttonsWidth = sw - buttonsOffset
|
|||
|
||||
/* Get the next event, blocking if necessary. */
|
||||
theEvent = [NSApp nextEventMatchingMask: eventMask
|
||||
untilDate: nil /* No limit, block until we get an event. */
|
||||
untilDate: [NSDate distantFuture] /* No limit, block until we get an event. */
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
eventType = [theEvent type];
|
||||
|
|
|
@ -685,7 +685,7 @@ float _floatValueForMousePoint (NSPoint point, NSRect knobRect,
|
|||
while (eventType != NSLeftMouseUp)
|
||||
{
|
||||
theEvent = [NSApp nextEventMatchingMask: eventMask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
eventType = [theEvent type];
|
||||
|
|
|
@ -361,7 +361,7 @@ static inline void HighlightDownButton(NSRect aRect)
|
|||
NSEventType eventType;
|
||||
|
||||
theEvent = [NSApp nextEventMatchingMask: event_mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
eventType = [theEvent type];
|
||||
|
|
|
@ -811,7 +811,7 @@
|
|||
}
|
||||
|
||||
event = [theApp nextEventMatchingMask: NSLeftMouseUpMask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: NO];
|
||||
|
||||
|
|
|
@ -4896,7 +4896,7 @@ other than copy/paste or dragging. */
|
|||
NSEvent *currentEvent;
|
||||
|
||||
currentEvent = [_window nextEventMatchingMask: mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
if ([currentEvent type] == NSLeftMouseDragged)
|
||||
|
@ -4924,7 +4924,7 @@ other than copy/paste or dragging. */
|
|||
stillSelecting: YES];
|
||||
|
||||
currentEvent = [_window nextEventMatchingMask: mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
gettingPeriodic = NO;
|
||||
|
@ -4988,7 +4988,7 @@ other than copy/paste or dragging. */
|
|||
stillSelecting: YES];
|
||||
|
||||
currentEvent = [_window nextEventMatchingMask: mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
} while ([currentEvent type] != NSLeftMouseUp);
|
||||
|
|
|
@ -3237,7 +3237,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
- (NSEvent*) nextEventMatchingMask: (unsigned int)mask
|
||||
{
|
||||
return [NSApp nextEventMatchingMask: mask
|
||||
untilDate: nil
|
||||
untilDate: [NSDate distantFuture]
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue