mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:37:38 +00:00
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:
parent
009e69756d
commit
135cf168a5
6 changed files with 2198 additions and 1180 deletions
|
@ -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) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue