mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 15:40:58 +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
ef2a8fdcd6
commit
2395ea184f
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>
|
2009-03-01 20:17-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSApplication.m: Fix bug #24643. Application icon is no
|
* Source/NSApplication.m: Fix bug #24643. Application icon is no
|
||||||
|
|
|
@ -413,7 +413,7 @@ static NSColor *titleColor[3];
|
||||||
|
|
||||||
|
|
||||||
currentEvent = [_window nextEventMatchingMask: mask
|
currentEvent = [_window nextEventMatchingMask: mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
} while ([currentEvent type] != NSLeftMouseUp);
|
} while ([currentEvent type] != NSLeftMouseUp);
|
||||||
|
@ -510,7 +510,7 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
currentEvent = [_window nextEventMatchingMask: mask
|
currentEvent = [_window nextEventMatchingMask: mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
} while ([currentEvent type] != NSLeftMouseUp);
|
} while ([currentEvent type] != NSLeftMouseUp);
|
||||||
|
|
|
@ -1608,7 +1608,7 @@ static NSColor *dtxtCol;
|
||||||
theEvent = [NSApp currentEvent];
|
theEvent = [NSApp currentEvent];
|
||||||
else
|
else
|
||||||
theEvent = [theApp nextEventMatchingMask: event_mask
|
theEvent = [theApp nextEventMatchingMask: event_mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
|
|
||||||
|
@ -1689,7 +1689,7 @@ static NSColor *dtxtCol;
|
||||||
|
|
||||||
if (!done)
|
if (!done)
|
||||||
theEvent = [theApp nextEventMatchingMask: event_mask
|
theEvent = [theApp nextEventMatchingMask: event_mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1627,7 +1627,7 @@ static inline NSRect buttonCellFrameFromRect(NSRect cellRect)
|
||||||
if (isMouseUp == NO)
|
if (isMouseUp == NO)
|
||||||
{
|
{
|
||||||
e = [NSApp nextEventMatchingMask: eventMask
|
e = [NSApp nextEventMatchingMask: eventMask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
|
|
||||||
|
|
|
@ -897,7 +897,7 @@ static NSNotificationCenter *nc;
|
||||||
}
|
}
|
||||||
|
|
||||||
e = [NSApp nextEventMatchingMask: event_mask
|
e = [NSApp nextEventMatchingMask: event_mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
if ([e type] == NSLeftMouseUp)
|
if ([e type] == NSLeftMouseUp)
|
||||||
|
|
|
@ -846,7 +846,7 @@ static const float buttonsOffset = 2; // buttonsWidth = sw - buttonsOffset
|
||||||
|
|
||||||
/* Get the next event, blocking if necessary. */
|
/* Get the next event, blocking if necessary. */
|
||||||
theEvent = [NSApp nextEventMatchingMask: eventMask
|
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
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
eventType = [theEvent type];
|
eventType = [theEvent type];
|
||||||
|
|
|
@ -685,7 +685,7 @@ float _floatValueForMousePoint (NSPoint point, NSRect knobRect,
|
||||||
while (eventType != NSLeftMouseUp)
|
while (eventType != NSLeftMouseUp)
|
||||||
{
|
{
|
||||||
theEvent = [NSApp nextEventMatchingMask: eventMask
|
theEvent = [NSApp nextEventMatchingMask: eventMask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
eventType = [theEvent type];
|
eventType = [theEvent type];
|
||||||
|
|
|
@ -361,7 +361,7 @@ static inline void HighlightDownButton(NSRect aRect)
|
||||||
NSEventType eventType;
|
NSEventType eventType;
|
||||||
|
|
||||||
theEvent = [NSApp nextEventMatchingMask: event_mask
|
theEvent = [NSApp nextEventMatchingMask: event_mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
eventType = [theEvent type];
|
eventType = [theEvent type];
|
||||||
|
|
|
@ -811,7 +811,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
event = [theApp nextEventMatchingMask: NSLeftMouseUpMask
|
event = [theApp nextEventMatchingMask: NSLeftMouseUpMask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: NO];
|
dequeue: NO];
|
||||||
|
|
||||||
|
|
|
@ -4896,7 +4896,7 @@ other than copy/paste or dragging. */
|
||||||
NSEvent *currentEvent;
|
NSEvent *currentEvent;
|
||||||
|
|
||||||
currentEvent = [_window nextEventMatchingMask: mask
|
currentEvent = [_window nextEventMatchingMask: mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
if ([currentEvent type] == NSLeftMouseDragged)
|
if ([currentEvent type] == NSLeftMouseDragged)
|
||||||
|
@ -4924,7 +4924,7 @@ other than copy/paste or dragging. */
|
||||||
stillSelecting: YES];
|
stillSelecting: YES];
|
||||||
|
|
||||||
currentEvent = [_window nextEventMatchingMask: mask
|
currentEvent = [_window nextEventMatchingMask: mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
gettingPeriodic = NO;
|
gettingPeriodic = NO;
|
||||||
|
@ -4988,7 +4988,7 @@ other than copy/paste or dragging. */
|
||||||
stillSelecting: YES];
|
stillSelecting: YES];
|
||||||
|
|
||||||
currentEvent = [_window nextEventMatchingMask: mask
|
currentEvent = [_window nextEventMatchingMask: mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
} while ([currentEvent type] != NSLeftMouseUp);
|
} while ([currentEvent type] != NSLeftMouseUp);
|
||||||
|
|
|
@ -3237,7 +3237,7 @@ resetCursorRectsForView(NSView *theView)
|
||||||
- (NSEvent*) nextEventMatchingMask: (unsigned int)mask
|
- (NSEvent*) nextEventMatchingMask: (unsigned int)mask
|
||||||
{
|
{
|
||||||
return [NSApp nextEventMatchingMask: mask
|
return [NSApp nextEventMatchingMask: mask
|
||||||
untilDate: nil
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
dequeue: YES];
|
dequeue: YES];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue