Commit graph

499 commits

Author SHA1 Message Date
Jonathan Gillaspie
0f5b764553 Add back showsResizeIndicator that got dropped during a merge.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35792 72102866-910b-0410-8b05-ffd578937521
2012-11-14 01:08:52 +00:00
Marcian Lytwyn
17ebc6fcf0 Fix cascadeTopLeftFromPoint to select main screen if window is off screen
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35769 72102866-910b-0410-8b05-ffd578937521
2012-10-30 21:35:12 +00:00
Marcian Lytwyn
71738e0dea Adjust window position if screen widths are different
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35768 72102866-910b-0410-8b05-ffd578937521
2012-10-30 20:47:51 +00:00
Marcian Lytwyn
40c790fad5 Tooltips not showing up wth cairo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35726 72102866-910b-0410-8b05-ffd578937521
2012-10-19 23:42:50 +00:00
Marcian Lytwyn
e5c4319f54 Re-apply fixes for MINGW and temporary patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35725 72102866-910b-0410-8b05-ffd578937521
2012-10-19 23:15:26 +00:00
Marcian Lytwyn
36e77b95f7 Merge from revision 35723 from main branch plus NSCell allowsUndo flag extract from xib
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35724 72102866-910b-0410-8b05-ffd578937521
2012-10-19 22:51:20 +00:00
Marcian Lytwyn
b155bbdc2d Check for zero screen frame in saved string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35710 72102866-910b-0410-8b05-ffd578937521
2012-10-17 21:35:05 +00:00
Marcian Lytwyn
ea9cd504ba probably should adjust width/height before centering frame
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35709 72102866-910b-0410-8b05-ffd578937521
2012-10-17 20:29:57 +00:00
Marcian Lytwyn
2887e68d43 Fix bad MSWindow frame string restore, window resizing due to menu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35708 72102866-910b-0410-8b05-ffd578937521
2012-10-17 20:10:28 +00:00
Marcian Lytwyn
f59b23c3fe TEMPORARY updaste for cairo and tooltips
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35669 72102866-910b-0410-8b05-ffd578937521
2012-10-11 21:03:00 +00:00
Doug Simons
0daa47b6fc Fix -center to center on the main screen if window is off screen
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35655 72102866-910b-0410-8b05-ffd578937521
2012-10-08 21:47:53 +00:00
Marcian Lytwyn
781794e998 Implement showsResizeIndicator method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35505 72102866-910b-0410-8b05-ffd578937521
2012-09-03 20:38:03 +00:00
Marcian Lytwyn
d888d2ec77 Fixed multi-screen support on window frame restore
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35241 72102866-910b-0410-8b05-ffd578937521
2012-06-27 18:10:40 +00:00
Eric Wasylishen
88fdeb6886 * Source/NSWindow.m: Only invoke -prepareForDragOperation: if the
most recent -draggingEntered: or -draggingUpdated: call returned
something other than NSDragOperationNone.
* Source/NSOutlineView.m (-draggingUpdated:): Save the drag operation
value returned from the data source in a static variable.
Previously it was fetched once and then discarded, so all drags were
being mistakenly permitted.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34910 72102866-910b-0410-8b05-ffd578937521
2012-03-09 08:03:45 +00:00
Fred Kiefer
d3321c2ffa * Source/NSWindow.m (-setFrameFromString:): Correct bug in
handling of in-window menus.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34798 72102866-910b-0410-8b05-ffd578937521
2012-02-20 17:46:28 +00:00
Fred Kiefer
8ad4aa86c4 Replace some occurences of int with NSInteger
and unsigned with NSUInteger. This allows to recompile gui on 
64 bit systems after the change to NSNotFound in base.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34312 72102866-910b-0410-8b05-ffd578937521
2011-12-17 17:16:09 +00:00
Fred Kiefer
d2011237e8 * Source/NSAnimation.m (NSViewAnimation -dealloc): Use DESTROY
instead of RELEASE as _viewAnimationDesc to prevent segmentation
        fault in super call.
        * Source/NSWindow.m (-setFrame:display:animate:): Use
        NSViewAnimation instead of local blocking code.
        * Source/NSWindow.m (-animationResizeTime:): Use abs() in all
        * directions.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33624 72102866-910b-0410-8b05-ffd578937521
2011-07-24 18:53:07 +00:00
Fred Kiefer
727e1993f0 Unbind key bindings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33511 72102866-910b-0410-8b05-ffd578937521
2011-07-11 08:40:31 +00:00
Wolfgang Lux
78fb85fbcf Fix management of windows whose hide on deactivate attribute is set.
In particular, such windows remain ordered out when the application
orders them out while it is not active and then is activated again.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33213 72102866-910b-0410-8b05-ffd578937521
2011-05-31 09:59:48 +00:00
David Chisnall
b4e3915c33 Turn release messages sent to autorelease pools into drain messages. No
functionality change in non-GC mode, in GC mode it invokes a quick GC pass to
try to delete the short-lived objects.

Also deleted some [pool release] lines just before exit() or return-from-main
statements.  These cause objects to be swapped in and destructors to be run to
no benefit (the OS will reclaim this memory without requiring stuff to be
swapped in when the process exits).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33146 72102866-910b-0410-8b05-ffd578937521
2011-05-27 12:42:37 +00:00
Eric Wasylishen
346f604cb7 * Source/NSWindow.m: Remove unnecessary FIXMEs related to
user space scale factor
* Source/NSAppliation.m: Correct app icon sizing which was
mixing up window frame coordinates and user space coordinates
* Source/NSCachedImageRep.m: Add NSUnscaledWindowMask to the
window used internally


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32897 72102866-910b-0410-8b05-ffd578937521
2011-04-19 08:23:01 +00:00
Fred Kiefer
a953d2bda0 Release the key value binding as it will be
retained in the binding table.
Leak found by static code analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32484 72102866-910b-0410-8b05-ffd578937521
2011-03-07 13:35:37 +00:00
Fred Kiefer
1e34733d4a * Source/GSNibLoading.m (NSCustomView): Correct implementation of
-initWithCoder: and remove -awakeAfterUsingCoder:.
* Source/NSSound.m: Remove method -awakeAfterUsingCoder:.
* Source/NSWindow.m (-_captureMouse:, -_releaseMouse:) Add some
  debug log code here to simplify debugging these methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32460 72102866-910b-0410-8b05-ffd578937521
2011-03-05 16:10:43 +00:00
Fred Kiefer
6daffd89d7 Fix memory leaks found by analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32255 72102866-910b-0410-8b05-ffd578937521
2011-02-20 22:36:49 +00:00
Fred Kiefer
d83fb0774b Remove direct usage of isa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32248 72102866-910b-0410-8b05-ffd578937521
2011-02-20 18:24:44 +00:00
Fred Kiefer
466714c847 Bug fix to last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32177 72102866-910b-0410-8b05-ffd578937521
2011-02-15 21:48:00 +00:00
Fred Kiefer
ca944f1dfa Revert Wolfgangs change and add a different solution as explained in his mail.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32176 72102866-910b-0410-8b05-ffd578937521
2011-02-15 19:50:54 +00:00
Wolfgang Lux
e8de70e645 Add user default to allow placing app icons and mini windows at normal
window level. This is particularly convenient with some window
managers (*cough*, kwin) where application and pop up menus would be
obscured by dock level windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32165 72102866-910b-0410-8b05-ffd578937521
2011-02-14 22:25:57 +00:00
Wolfgang Lux
92da3e62d0 Fix bug where a stray view could leak when changing the content view
of a window. This view then could make the title bar buttons
inaccessible when -gui handles window decorations.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32163 72102866-910b-0410-8b05-ffd578937521
2011-02-14 22:11:26 +00:00
Fred Kiefer
906201acf6 Remove dead assignments found by static code analysis.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32022 72102866-910b-0410-8b05-ffd578937521
2011-02-09 22:20:00 +00:00
Wolfgang Lux
1a887c7645 Improve last but one commit by not including an in-window menu in a
window's saved frame as well. Also avoid a redundant cast from float
to int and back.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31941 72102866-910b-0410-8b05-ffd578937521
2011-01-24 13:19:30 +00:00
Wolfgang Lux
89715a53c1 Merge change from the testplant_1 branch:
Do not include the toolbar in a window's saved frame. Makes saving and
restoring window frame sizes independent of whether the toolbar is
present at the time when the frame is saved or restored.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31939 72102866-910b-0410-8b05-ffd578937521
2011-01-24 08:59:10 +00:00
Germán Arias
f999016f34 Applied changes in menuInWindow.patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31895 72102866-910b-0410-8b05-ffd578937521
2011-01-16 00:32:54 +00:00
Wolfgang Lux
ab919f8fba Rename color (list) change notifications to match Cocoa (and OpenStep).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31893 72102866-910b-0410-8b05-ffd578937521
2011-01-15 19:28:24 +00:00
Germán Arias
bf270ebcfb Fixed the behaviour of menu in window when hide the app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31859 72102866-910b-0410-8b05-ffd578937521
2011-01-09 06:10:02 +00:00
Wolfgang Lux
fb66e35ad6 Don't show a toolbar customization palette for a toolbar when user
customization is disabled.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31799 72102866-910b-0410-8b05-ffd578937521
2010-12-30 18:58:12 +00:00
Nicola Pero
f80e259048 Explicitly encode/decode enumerated types as 'int' which is what all
the existing archives use (even if it is incorrect as in many cases
the types are actually 'unsigned int')


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31785 72102866-910b-0410-8b05-ffd578937521
2010-12-27 11:57:04 +00:00
Wolfgang Lux
879c4b2af4 Allow any window that responds YES to -worksWhenModal to become key in
a modal session.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31714 72102866-910b-0410-8b05-ffd578937521
2010-12-07 07:55:48 +00:00
Wolfgang Lux
449c4f8af6 Do not discard close requests for a window in a modal session when the
window has -worksWhenModal==YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31653 72102866-910b-0410-8b05-ffd578937521
2010-11-26 16:07:19 +00:00
Fred Kiefer
b8abcc62ea * Source/NSWindow.m (-validRequestorForSendType:returnType:):
Don't forward this method if the delegate is a NSResponder.
Patch by Georg Fleischmann <G.Fleischmann@vhf.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31586 72102866-910b-0410-8b05-ffd578937521
2010-11-03 20:06:00 +00:00
Eric Wasylishen
26fcda321b Replace sel_eq with sel_isEqual
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31285 72102866-910b-0410-8b05-ffd578937521
2010-09-09 23:50:38 +00:00
Fred Kiefer
f5eb73e8da Correction of last changes as pointed out by Derek Fawcus
<dfawcus@employees.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31032 72102866-910b-0410-8b05-ffd578937521
2010-07-26 11:05:07 +00:00
Fred Kiefer
ad9ddfe0ea Add support for backtab character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31026 72102866-910b-0410-8b05-ffd578937521
2010-07-25 20:51:40 +00:00
Wolfgang Lux
b59b4e7e32 Avoid a race with some lame window managers, which could lead to a
crash when a window is closed and deallocated while a tool tip is
visible.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30513 72102866-910b-0410-8b05-ffd578937521
2010-05-31 21:55:33 +00:00
Fred Kiefer
99e273a57d few compiler warning fixes plus a lot of #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30448 72102866-910b-0410-8b05-ffd578937521
2010-05-24 10:48:14 +00:00
Wolfgang Lux
fb7e725344 Fix a rather long standing incompatibility between GNUstep and Cocoa
and make -initWithContentRect:styleMask:backing:defer: the designated
initializer of NSWindow.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30368 72102866-910b-0410-8b05-ffd578937521
2010-05-12 14:47:10 +00:00
Fred Kiefer
da7fd680fb Make dealloc of NSWindow a tiny bit saver.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30321 72102866-910b-0410-8b05-ffd578937521
2010-05-08 20:18:14 +00:00
Doug Simons
3c4b83960f Handle nil view passed to _checkTrackingRectangles:forEvent:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30233 72102866-910b-0410-8b05-ffd578937521
2010-04-24 17:21:22 +00:00
Doug Simons
34f7052ac2 fix problems with overlaps between toolbars, window contents, and in-window menus
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30206 72102866-910b-0410-8b05-ffd578937521
2010-04-20 19:37:10 +00:00
Riccardo Mottola
2a52aa187c removed c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30144 72102866-910b-0410-8b05-ffd578937521
2010-04-13 22:54:33 +00:00