Commit graph

4890 commits

Author SHA1 Message Date
Eric Wasylishen
b4956bb4ac Allow saving a print job as a PDF
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32559 72102866-910b-0410-8b05-ffd578937521
2011-03-13 23:38:47 +00:00
Wolfgang Lux
a86694d315 Change all spelling panel action methods to return no result.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32553 72102866-910b-0410-8b05-ffd578937521
2011-03-13 18:07:58 +00:00
Wolfgang Lux
be4d071bc2 Fix nasty retain/release error, which could crash applications after
changing the spell checker language in the spell panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32552 72102866-910b-0410-8b05-ffd578937521
2011-03-13 17:59:31 +00:00
Fred Kiefer
b7d056ae43 Removed dead assignments found by static code analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32551 72102866-910b-0410-8b05-ffd578937521
2011-03-13 15:26:20 +00:00
Fred Kiefer
0a2f6bd2df * Source/NSMatrix.m (_shiftModifier:): Use correct column index
for old cell.
* Headers/AppKit/NSCursor.h
* gui/Source/NSCursor.m: Add Mac 10.6 methods and implement
keyed coding/decoding properly.
* Images/nsmapping.strings: Add mappings for some new cursors.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32538 72102866-910b-0410-8b05-ffd578937521
2011-03-12 19:01:54 +00:00
Eric Wasylishen
b460081f8c NSTextView continuous spell checking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32534 72102866-910b-0410-8b05-ffd578937521
2011-03-12 07:45:14 +00:00
Fred Kiefer
b216539303 Fix dead initialisation found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32530 72102866-910b-0410-8b05-ffd578937521
2011-03-10 23:21:04 +00:00
Fred Kiefer
782af1ee89 Fix memory leaks found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32529 72102866-910b-0410-8b05-ffd578937521
2011-03-10 23:03:01 +00:00
Richard Frith-MacDonald
19f8307312 add warning comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32527 72102866-910b-0410-8b05-ffd578937521
2011-03-10 08:22:44 +00:00
Wolfgang Lux
b0af15ff80 Stop observing notifications from a pop up button's menu when the
button is deallocated to prevent obscure crashes later.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32513 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:52:43 +00:00
Wolfgang Lux
f9fb57e717 Fix swapped macro arguments, which could lead to a wrong selection and
potentially a crash when extending the selection of a matrix with the
alt modifier key.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32506 72102866-910b-0410-8b05-ffd578937521
2011-03-09 09:59:09 +00:00
Wolfgang Lux
d7c8c25e08 Don't wrap text in table view headers by default. Partially fixes #30020.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32505 72102866-910b-0410-8b05-ffd578937521
2011-03-09 09:00:46 +00:00
Eric Wasylishen
e39fed5a42 gui: implement NSLayoutManager temporary attributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32503 72102866-910b-0410-8b05-ffd578937521
2011-03-09 05:28:47 +00:00
Fred Kiefer
2223f0009b Release the stack, as it is retained in the thread dictionary.
Leak found by static code analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32493 72102866-910b-0410-8b05-ffd578937521
2011-03-07 21:18:19 +00:00
Fred Kiefer
d4d795bdb2 Change the way the image for the cursor gets passed on to the backend.
The old way could only work for 8 bit data.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32491 72102866-910b-0410-8b05-ffd578937521
2011-03-07 19:45:04 +00:00
Fred Kiefer
0456c89f56 Implement NSSelectedTagBinding on NSPopupButton.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32486 72102866-910b-0410-8b05-ffd578937521
2011-03-07 15:35:36 +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
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