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
fcfa7dafb4
ne more static analyser fix, this time in NSImageView.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32478 72102866-910b-0410-8b05-ffd578937521
2011-03-06 23:11:03 +00:00
Fred Kiefer
eb6d527983
Fixed different issues spotted by the static code analysis.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32477 72102866-910b-0410-8b05-ffd578937521
2011-03-06 22:58:56 +00:00
Richard Frith-MacDonald
2a5554ea97
avoid calls to non-standard method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32461 72102866-910b-0410-8b05-ffd578937521
2011-03-05 16:18:04 +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
2d01942e4b
Replace #include -> #import
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
Fred Kiefer
3b0c5dfe24
Small changes found by static analyser.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32434 72102866-910b-0410-8b05-ffd578937521
2011-03-02 21:30:18 +00:00
Richard Frith-MacDonald
edb6aa47ee
avoid obsolete macros
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32412 72102866-910b-0410-8b05-ffd578937521
2011-02-28 15:43:25 +00:00
Richard Frith-MacDonald
e1fdfb3ee4
tidyup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32410 72102866-910b-0410-8b05-ffd578937521
2011-02-28 14:24:57 +00:00
Riccardo Mottola
b2d830cbf4
Replace objc_malloc with malloc for structures.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32409 72102866-910b-0410-8b05-ffd578937521
2011-02-28 14:04:43 +00:00
David Chisnall
a278bc778a
Rename HUGE -> GSHUGE to remove conflict with standard library #define.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32352 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:29:18 +00:00
David Chisnall
87d2bfba5f
More unsigned < 0 tests.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32351 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:28:20 +00:00
David Chisnall
a02d1254f2
get_imp() -> class_getMethodImplementation() (GCC runtime function -> standard runtime function)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32350 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:27:24 +00:00
David Chisnall
f51c8bc7ca
Remove some more comparisons testing unsigned values are < 0.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32349 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:25:42 +00:00
David Chisnall
12fd784151
Remove some tests that are always true (NSRange.length > 0 - NSUIntegers are always > 0).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32348 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:21:37 +00:00
David Chisnall
cf727674d1
Change unsigned int -> int, so that loops terminate with termination condition, rather than SegV
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32347 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:18:43 +00:00
David Chisnall
38438cf711
Comment out unused function.
...
Fred: Is there a reason that this function exists, or can we just delete it?
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32346 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:15:54 +00:00
Eric Wasylishen
77cdf8bbea
Release mouse before invoking menu action
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32307 72102866-910b-0410-8b05-ffd578937521
2011-02-22 22:22:01 +00:00
Eric Wasylishen
d33f0c0c6a
RTF: add support for read/wite of underline and strikethrough attributes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32305 72102866-910b-0410-8b05-ffd578937521
2011-02-22 20:59:10 +00:00
Eric Wasylishen
227381f621
preliminary implementation of underlining
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32304 72102866-910b-0410-8b05-ffd578937521
2011-02-22 20:53:13 +00:00
Fred Kiefer
c6b1c45739
* Source/NSMenuView.m (-trackWithEvent:): Rewrite that uses mouse
...
capture to ensure we get mouse events outside our windows.
Patch by Christopher Armstrong <carmstrong@fastmail.com.au>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32273 72102866-910b-0410-8b05-ffd578937521
2011-02-22 00:22:46 +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
c67cd8b4f8
Remove the GSFusedSilica files as they are obsolete now.
...
The Opal library is a more complete replacement for CoreGraphics.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32251 72102866-910b-0410-8b05-ffd578937521
2011-02-20 20:10:57 +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
03bc4d79d6
Define new cursor backend methods replacing -setcursorcolor:::. And use
...
these.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32179 72102866-910b-0410-8b05-ffd578937521
2011-02-15 22:54:23 +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
Wolfgang Lux
b07303eb41
Create a default content view for new tab view items.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32162 72102866-910b-0410-8b05-ffd578937521
2011-02-14 21:51:08 +00:00
Fred Kiefer
89d6cc016c
* Source/NSOutlineView.m (-editColumn:...select:): Bring closer
...
to the new code in [-drawRow:clipRect:].
* Source/GSInfoPanel.m (-initWithDictionary:): Protect against
icon being nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32161 72102866-910b-0410-8b05-ffd578937521
2011-02-14 20:11:57 +00:00
Fred Kiefer
f58e9c1d39
Fix Use-after-release found by static analyser.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32159 72102866-910b-0410-8b05-ffd578937521
2011-02-14 18:38:11 +00:00
Germán Arias
c9a8e3c3ae
Fixed bug #31039
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32045 72102866-910b-0410-8b05-ffd578937521
2011-02-10 23:58:04 +00:00
Germán Arias
e310aaa25b
Fixed some problems with gorm files
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32029 72102866-910b-0410-8b05-ffd578937521
2011-02-10 06:40:35 +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
Richard Frith-MacDonald
ff39f70ab1
reduce creation/destruction of NSDate objects
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32019 72102866-910b-0410-8b05-ffd578937521
2011-02-09 09:53:56 +00:00
Riccardo Mottola
85a6f46fc2
Tweak png.h header order to avoid problems on some systems
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32017 72102866-910b-0410-8b05-ffd578937521
2011-02-08 18:50:52 +00:00
Riccardo Mottola
14328a34f3
Cleaned up includes so that compilation without PNG works again
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32014 72102866-910b-0410-8b05-ffd578937521
2011-02-08 16:14:12 +00:00
Fred Kiefer
89eb95e7d4
Add method -scrollRowToVisible:inColumn: to NSBrowser.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31980 72102866-910b-0410-8b05-ffd578937521
2011-01-31 22:42:49 +00:00
Fred Kiefer
63744bc165
PNG patch by Thomase Klausner.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31970 72102866-910b-0410-8b05-ffd578937521
2011-01-29 14:44:01 +00:00
Wolfgang Lux
3da944c1dd
Fix application termination behavior by sending a message to the
...
document controller to let the user review any unsaved changes in its
managed documents before asking the application delegate whether its
okay to terminate the application. This matches Cocoa's documented and
implemented behavior.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31957 72102866-910b-0410-8b05-ffd578937521
2011-01-27 20:32:01 +00:00
Wolfgang Lux
c4110a7ede
Move code to set the window frame autosave name of a window
...
controller's window to match Cocoa behavior.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31945 72102866-910b-0410-8b05-ffd578937521
2011-01-24 22:05:36 +00:00
Doug Simons
d13b785e37
fix click in search field to select at the correct point in the text
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31944 72102866-910b-0410-8b05-ffd578937521
2011-01-24 17:39:24 +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
Fred Kiefer
6eaff61772
Add loading of NIB to NSViewController.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31940 72102866-910b-0410-8b05-ffd578937521
2011-01-24 11:47:55 +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
6370fa3b07
Fixed problems with menu in windows: transient menus and pop-ups.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31938 72102866-910b-0410-8b05-ffd578937521
2011-01-24 07:02:15 +00:00
Wolfgang Lux
dde88908f9
Make sure the system colors are set up properly before computing the
...
available color lists. Fixes an issue where the returned list would
either be empty or contain two instances of the system color list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31919 72102866-910b-0410-8b05-ffd578937521
2011-01-20 19:36:49 +00:00
Richard Frith-MacDonald
e1e1662419
iminor tidyup and caching fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31918 72102866-910b-0410-8b05-ffd578937521
2011-01-20 14:59:50 +00:00
Doug Simons
8daa067224
Fix multiple issues with search fields, including displaying and registering selected items in the search menu properly; displaying text of recent search item; hiding cancel button when field is empty.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31911 72102866-910b-0410-8b05-ffd578937521
2011-01-20 00:06:01 +00:00