From f158b0a0474b29d10c16a9eed078e8480aa62de6 Mon Sep 17 00:00:00 2001 From: dpsimons Date: Wed, 24 Mar 2010 17:14:34 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/GSToolTips.m | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0492b801c..60dc83ab9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-24 Doug Simons + + * Source/GSToolTips.m: Use NSPanel instead of NSWindow for + the tooltip (helps resolve an occasional crash on Windows). + 2010-03-24 Fred Kiefer * Headers/AppKit/AppKitExceptions.h, diff --git a/Source/GSToolTips.m b/Source/GSToolTips.m index b04cbf44e..760b9b9b0 100644 --- a/Source/GSToolTips.m +++ b/Source/GSToolTips.m @@ -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];