NSBrowser rewrite.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5339 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-11-30 22:15:25 +00:00
parent 009e69756d
commit 135cf168a5
6 changed files with 2198 additions and 1180 deletions

View file

@ -1237,6 +1237,8 @@ GSSetDragTypes(NSView* obj, NSArray *types)
struct NSWindow_struct *window_t;
NSRect wrect;
NSAssert(window != nil, NSInternalInconsistencyException);
[ctxt lockFocusView: self inRect: rect];
wrect = [self convertRect: rect toView: nil];
window_t = (struct NSWindow_struct *)window;
@ -1300,6 +1302,8 @@ GSSetDragTypes(NSView* obj, NSArray *types)
struct NSWindow_struct *window_t;
NSGraphicsContext *ctxt = GSCurrentContext();
NSAssert(window != nil, NSInternalInconsistencyException);
/* Restore our original gstate */
DPSgrestore(ctxt);
/* Restore gstate of nesting lockFocus (if any) */