Commit graph

6565 commits

Author SHA1 Message Date
Fred Kiefer
4335c12ae4 Further improvement of toolbar resizing and missing changelog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30380 72102866-910b-0410-8b05-ffd578937521
2010-05-13 14:25:54 +00:00
Wolfgang Lux
ccfd4b4fd5 Don't send -awakeFromNib to an NSApplication proxy in a .nib file (nor
any other proxy) and do not record it in the top level array either.
Identification of proxy objects is based on their object IDs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30379 72102866-910b-0410-8b05-ffd578937521
2010-05-13 14:08:26 +00:00
Wolfgang Lux
809a378e24 Ensure proper order of actions when loading a .nib file and make sure
all objects are instantiated before establishing any connections. This
fixes an issue where, e.g., a generic shared document controller
instance is created before a custom instance defined in the nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30376 72102866-910b-0410-8b05-ffd578937521
2010-05-13 13:01:44 +00:00
Fred Kiefer
ed30b6221a Clean up toolbar item resizing, this now allows for resizable item other than flexible space.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30371 72102866-910b-0410-8b05-ffd578937521
2010-05-12 23:06:02 +00:00
Gregory John Casamento
562f545bd3 * Headers/Additions/GNUstepGUI/GSTheme.h: Added method
rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/GSThemeMenu.m: Implementation of method 
	rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/NSMenu.m: use the theming code implemented above instead
	of rendering the menu directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30370 72102866-910b-0410-8b05-ffd578937521
2010-05-12 22:47:10 +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
Wolfgang Lux
77eaadf3ae Next attempt at getting .nib file loading right. Make sure that
-nibInstantiate is sent to all loaded objects and also make sure that
-awakeFromNib is sent to the nib's owner.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30367 72102866-910b-0410-8b05-ffd578937521
2010-05-12 14:19:55 +00:00
Wolfgang Lux
f77c5f6bca Make number of remembered recent documents configurable with a user
preference and fix a bug where one extra document was remembered.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30366 72102866-910b-0410-8b05-ffd578937521
2010-05-12 10:24:17 +00:00
Wolfgang Lux
cfb8299e07 Fix bug where some objects loaded from a .xib file were not sent an
-awakeFromNib message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30365 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:51:45 +00:00
Wolfgang Lux
2d56513a18 Fix a small glitch in the previous commit and make use of the setter
method to initialize the private name attribute of an NSMenu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30364 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:15:25 +00:00
Wolfgang Lux
14b0075299 Add a private name attribute to menus to identify special purpose
menus. Fixes a bug where the services, windows, and recent documents
menu were defunct when loading the menu from a .nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30363 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:02:25 +00:00
Wolfgang Lux
e0d603b2ae Add an attribute to NSDocumentController to maintain the recent
documents menu. Make the methods to access that menu available to
other classes in -gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30362 72102866-910b-0410-8b05-ffd578937521
2010-05-12 08:17:26 +00:00
Wolfgang Lux
20a4078572 Fix bug where some objects loaded from a .nib file were not sent an
-awakeFromNib message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30361 72102866-910b-0410-8b05-ffd578937521
2010-05-12 07:59:57 +00:00
Fred Kiefer
0ecdeae752 Remove compiler warning for NSBrowser header cell drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30360 72102866-910b-0410-8b05-ffd578937521
2010-05-11 16:48:44 +00:00
Adam Fedor
354ab11ccc Clarify unstable release documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30348 72102866-910b-0410-8b05-ffd578937521
2010-05-10 19:59:20 +00:00
Adam Fedor
26f724eb60 Fix Changelog for 0.19.0 release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30342 72102866-910b-0410-8b05-ffd578937521
2010-05-10 03:43:50 +00:00
Adam Fedor
dabdf8972e Version 0.19.0 Unstable release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30338 72102866-910b-0410-8b05-ffd578937521
2010-05-10 03:41:14 +00:00
Adam Fedor
2248b42cbe Version 0.18.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30334 72102866-910b-0410-8b05-ffd578937521
2010-05-10 03:20:59 +00:00
Richard Frith-MacDonald
046be50f74 Attempt fix for Riccardos's latest issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30328 72102866-910b-0410-8b05-ffd578937521
2010-05-09 06:55:33 +00:00
Fred Kiefer
fe380301ed Correct date of last changelog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30322 72102866-910b-0410-8b05-ffd578937521
2010-05-08 20:38:35 +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
Wolfgang Lux
0ea019f35f Fix a regression where a window's content view was improperly resized
when toggleToolbarShown: makes its toolbar visible again.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30319 72102866-910b-0410-8b05-ffd578937521
2010-05-07 18:22:13 +00:00
Fred Kiefer
da1abbdb04 Add method directoryURL to NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30278 72102866-910b-0410-8b05-ffd578937521
2010-05-02 10:21:40 +00:00
Fred Kiefer
f2c582b9c3 Fix extra space for Umlaut characters in RTF introduced with last
change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30277 72102866-910b-0410-8b05-ffd578937521
2010-05-02 09:47:56 +00:00
Fred Kiefer
5359aa0a77 Avoid unneeded space characters in RTF data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30273 72102866-910b-0410-8b05-ffd578937521
2010-05-01 16:31:03 +00:00
Wolfgang Lux
756db465e4 Fix bug #29633.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30266 72102866-910b-0410-8b05-ffd578937521
2010-05-01 08:26:01 +00:00
Adam Fedor
4cea0b531e * configure, configure.ac, Headers/Additions/GNUstepGUI/config.h.in,
Source/NSSliderCell.m: Check for atan2f function (not present on
old Solaris systems for instance).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30254 72102866-910b-0410-8b05-ffd578937521
2010-04-28 18:14:43 +00:00
Doug Simons
9f1fb9cc7c fix occasional exception while dragging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30234 72102866-910b-0410-8b05-ffd578937521
2010-04-24 19:43:35 +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
b136536052 Only rebuild in-window menus when needed (significant performance improvement)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30232 72102866-910b-0410-8b05-ffd578937521
2010-04-24 17:12:35 +00:00
Eric Wasylishen
165dcffe60 gui: fix bug 29635 NSMenuItem -initWithCoder: should set modifier mask to 0 if NSKeyEquivModMask not defined
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30229 72102866-910b-0410-8b05-ffd578937521
2010-04-24 00:03:30 +00:00
Jonathan Gillaspie
0ebc6d3185 * Source/NSWindowController.m: Fixed a problem where controller marks
the window as loaded even when the nib failed to load.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30227 72102866-910b-0410-8b05-ffd578937521
2010-04-23 19:26:44 +00:00
Jonathan Gillaspie
e03690b917 * Headers/AppKit/NSGraphics.h: NSBeep() - Don't crash when a
graphics context isn't available (eg - from a subthread).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30226 72102866-910b-0410-8b05-ffd578937521
2010-04-23 17:23:43 +00:00
Wolfgang Lux
e400ed9975 Fix incorrect return code of NSRunAlertPanel when called in a non-gui
application.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30222 72102866-910b-0410-8b05-ffd578937521
2010-04-23 15:12:06 +00:00
Doug Simons
7428dac2af update header to eliminate warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30208 72102866-910b-0410-8b05-ffd578937521
2010-04-20 19:59:42 +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
Doug Simons
aa0ce37f5d Honor sendsActionOnEndEditing setting when editing ended by something other than return
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30196 72102866-910b-0410-8b05-ffd578937521
2010-04-19 17:11:25 +00:00
Eric Wasylishen
0d365b7d10 NSBrowser header themeing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30189 72102866-910b-0410-8b05-ffd578937521
2010-04-19 03:14:36 +00:00
Eric Wasylishen
4650d6493d core/gui: Add an option to turn off the inner border lines in NSScrollView which look bad on any non-NeXT like theme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30186 72102866-910b-0410-8b05-ffd578937521
2010-04-18 22:39:18 +00:00
Riccardo Mottola
b06fad609f removed c99isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30175 72102866-910b-0410-8b05-ffd578937521
2010-04-16 18:58:26 +00:00
Eric Wasylishen
392a9f77b5 NSSegmentedCell initWithCoder: fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30171 72102866-910b-0410-8b05-ffd578937521
2010-04-15 19:46:59 +00:00
Wolfgang Lux
7f6a94c5bb When editing of a text field ends after pressing the Return key and no
(other) view has become first responder make the text field itself
first responder by selecting its text just like this is done after
pressing Tab and Shift-Tab.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30145 72102866-910b-0410-8b05-ffd578937521
2010-04-14 07:11:50 +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
Doug Simons
fe66919f5b Fix numerous issues with toolbar customization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30143 72102866-910b-0410-8b05-ffd578937521
2010-04-13 21:38:31 +00:00
Jonathan Gillaspie
c46d450978 * Source/GSToolTips.m: Use a single retained window for tooltips instead of a
newly created one each time.  This significantly reduces callback interaction 
  with MS-Windows callbacks.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30141 72102866-910b-0410-8b05-ffd578937521
2010-04-13 18:59:45 +00:00
Fred Kiefer
706d84fdfd * Source/NSBitmapImageRep+JPEG.m (-_JPEGRepresentationWithProperties:errorMessage:): Use the
correct size for the structure in memset.
Patch by Philippe Roussel <p.o.roussel@free.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30132 72102866-910b-0410-8b05-ffd578937521
2010-04-12 14:27:37 +00:00
Eric Wasylishen
fa1db26477 Fix for delivery of rightMouseDragged: and otherMouseDragged: which were not working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30120 72102866-910b-0410-8b05-ffd578937521
2010-04-11 00:31:59 +00:00
David Chisnall
c6866f8c8a Lots of small tweaks to make -gui compile without warnings with clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30119 72102866-910b-0410-8b05-ffd578937521
2010-04-10 20:33:30 +00:00
David Chisnall
818b672ad5 Expand RETAIN()/RELEASE() macros calling super (work around for clang PR6811).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30118 72102866-910b-0410-8b05-ffd578937521
2010-04-10 17:48:49 +00:00
Fred Kiefer
63638ee055 Remove compiler warnings from clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30117 72102866-910b-0410-8b05-ffd578937521
2010-04-10 17:48:46 +00:00