mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 10:21:00 +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
9768ee6425
commit
f158b0a047
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>
|
2010-03-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Headers/AppKit/AppKitExceptions.h,
|
* Headers/AppKit/AppKitExceptions.h,
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "AppKit/NSEvent.h"
|
#include "AppKit/NSEvent.h"
|
||||||
#include "AppKit/NSScreen.h"
|
#include "AppKit/NSScreen.h"
|
||||||
#include "AppKit/NSView.h"
|
#include "AppKit/NSView.h"
|
||||||
#include "AppKit/NSWindow.h"
|
#include "AppKit/NSPanel.h"
|
||||||
#include "GNUstepGUI/GSTrackingRect.h"
|
#include "GNUstepGUI/GSTrackingRect.h"
|
||||||
#include "GSToolTips.h"
|
#include "GSToolTips.h"
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ typedef struct NSView_struct
|
||||||
static NSMapTable *viewsMap = 0;
|
static NSMapTable *viewsMap = 0;
|
||||||
static NSTimer *timer = nil;
|
static NSTimer *timer = nil;
|
||||||
static GSToolTips *timedObject = nil;
|
static GSToolTips *timedObject = nil;
|
||||||
static NSWindow *window = nil;
|
static NSPanel *window = nil;
|
||||||
static NSSize offset;
|
static NSSize offset;
|
||||||
static BOOL restoreMouseMoved;
|
static BOOL restoreMouseMoved;
|
||||||
|
|
||||||
|
@ -568,7 +568,7 @@ static BOOL restoreMouseMoved;
|
||||||
offset.height = rect.origin.y - mouseLocation.y;
|
offset.height = rect.origin.y - mouseLocation.y;
|
||||||
offset.width = rect.origin.x - mouseLocation.x;
|
offset.width = rect.origin.x - mouseLocation.x;
|
||||||
|
|
||||||
window = [[NSWindow alloc] initWithContentRect: rect
|
window = [[NSPanel alloc] initWithContentRect: rect
|
||||||
styleMask: NSBorderlessWindowMask
|
styleMask: NSBorderlessWindowMask
|
||||||
backing: NSBackingStoreRetained
|
backing: NSBackingStoreRetained
|
||||||
defer: YES];
|
defer: YES];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue