mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:40:36 +00:00
Updated for change in NSWindow's ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7396 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
26a0416e7c
commit
35695a3b46
3 changed files with 8 additions and 8 deletions
|
@ -128,7 +128,7 @@ NSApplication *NSApp = nil;
|
|||
[super _initDefaults];
|
||||
[self setExcludedFromWindowsMenu: YES];
|
||||
[self setReleasedWhenClosed: NO];
|
||||
window_level = NSDockWindowLevel;
|
||||
_windowLevel = NSDockWindowLevel;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -1279,7 +1279,7 @@ static NSString *NSMenuLocationsKey = @"NSMenuLocations";
|
|||
- (void) _initDefaults
|
||||
{
|
||||
[super _initDefaults];
|
||||
window_level = NSSubmenuWindowLevel;
|
||||
_windowLevel = NSSubmenuWindowLevel;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
@ -1309,7 +1309,7 @@ static NSString *NSMenuLocationsKey = @"NSMenuLocations";
|
|||
// This method is a hack to speed-up menu dragging.
|
||||
- (void) moveToPoint: (NSPoint)aPoint
|
||||
{
|
||||
NSRect frameRect = frame;
|
||||
NSRect frameRect = _frame;
|
||||
|
||||
frameRect.origin = aPoint;
|
||||
DPSplacewindow(GSCurrentContext(), frameRect.origin.x, frameRect.origin.y,
|
||||
|
|
|
@ -1267,7 +1267,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
NSDebugLLog(@"NSView", @"Displaying rect \n\t%@\n\t window %p",
|
||||
NSStringFromRect(wrect), _window);
|
||||
window_t = (struct NSWindow_struct *)_window;
|
||||
[window_t->rectsBeingDrawn addObject: [NSValue valueWithRect: wrect]];
|
||||
[window_t->_rectsBeingDrawn addObject: [NSValue valueWithRect: wrect]];
|
||||
|
||||
DPSgsave(ctxt);
|
||||
if (_gstate)
|
||||
|
@ -1342,12 +1342,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
window_t = (struct NSWindow_struct *)_window;
|
||||
if (flush)
|
||||
{
|
||||
rect = [[window_t->rectsBeingDrawn lastObject] rectValue];
|
||||
window_t->rectNeedingFlush =
|
||||
NSUnionRect(window_t->rectNeedingFlush, rect);
|
||||
rect = [[window_t->_rectsBeingDrawn lastObject] rectValue];
|
||||
window_t->_rectNeedingFlush =
|
||||
NSUnionRect(window_t->_rectNeedingFlush, rect);
|
||||
window_t->_f.needs_flush = YES;
|
||||
}
|
||||
[window_t->rectsBeingDrawn removeLastObject];
|
||||
[window_t->_rectsBeingDrawn removeLastObject];
|
||||
[ctxt unlockFocusView: self needsFlush: YES ];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue