mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
use NSPanel instead of NSWindow for tooltips
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30030 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
00ab729bdd
commit
27dd5c1a82
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-03-24 Doug Simons <doug.simons@testplant.com>
|
||||
|
||||
* Source/GSToolTips.m: Use NSPanel instead of NSWindow for
|
||||
the tooltip (helps resolve an occasional crash on Windows).
|
||||
|
||||
2010-03-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/AppKit/AppKitExceptions.h,
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "AppKit/NSEvent.h"
|
||||
#include "AppKit/NSScreen.h"
|
||||
#include "AppKit/NSView.h"
|
||||
#include "AppKit/NSWindow.h"
|
||||
#include "AppKit/NSPanel.h"
|
||||
#include "GNUstepGUI/GSTrackingRect.h"
|
||||
#include "GSToolTips.h"
|
||||
|
||||
|
@ -132,7 +132,7 @@ typedef struct NSView_struct
|
|||
static NSMapTable *viewsMap = 0;
|
||||
static NSTimer *timer = nil;
|
||||
static GSToolTips *timedObject = nil;
|
||||
static NSWindow *window = nil;
|
||||
static NSPanel *window = nil;
|
||||
static NSSize offset;
|
||||
static BOOL restoreMouseMoved;
|
||||
|
||||
|
@ -568,7 +568,7 @@ static BOOL restoreMouseMoved;
|
|||
offset.height = rect.origin.y - mouseLocation.y;
|
||||
offset.width = rect.origin.x - mouseLocation.x;
|
||||
|
||||
window = [[NSWindow alloc] initWithContentRect: rect
|
||||
window = [[NSPanel alloc] initWithContentRect: rect
|
||||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: YES];
|
||||
|
|
Loading…
Reference in a new issue