Commit graph

5361 commits

Author SHA1 Message Date
Fred Kiefer
521fd071b4 Make the class GSXibKeyedUnarchiver public again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40449 72102866-910b-0410-8b05-ffd578937521
2017-04-05 21:51:43 +00:00
Ivan Vučica
f2e26995e2 Update changelog for 0.25.1.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40439 72102866-910b-0410-8b05-ffd578937521
2017-04-03 23:44:56 +00:00
Fred Kiefer
753415895b 2017-04-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenu.m (-displayTransient): Update menu before displaying.
	* Source/NSMenuView.m (-attachSubmenuForItemAtIndex:): Use NSMenu
	display method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40431 72102866-910b-0410-8b05-ffd578937521
2017-03-31 22:14:50 +00:00
Fred Kiefer
34bbb5e95d 2017-03-31 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAttributedString.m: Check for surrogate UTF16
	characters to prevent nil strings when trying to attempt fonst
	substitution.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40430 72102866-910b-0410-8b05-ffd578937521
2017-03-31 21:49:09 +00:00
Riccardo Mottola
90d793695b Ignore density if unit is 0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40429 72102866-910b-0410-8b05-ffd578937521
2017-03-31 15:35:46 +00:00
Riccardo Mottola
28b15bce9f Parse density data and set size accordingly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40425 72102866-910b-0410-8b05-ffd578937521
2017-03-28 13:51:12 +00:00
Fred Kiefer
083b34fe1c * Source/NSBitmapImageRep+JPEG.m(-_JPEGRepresentationWithProperties:errorMessage:):
Correct JPEG export which was using size instead of pixelsWide and pixelsHigh.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40415 72102866-910b-0410-8b05-ffd578937521
2017-03-24 23:06:31 +00:00
Fred Kiefer
19dc4dbb94 * Source/GSXibKeyedUnarchiver.m:
Merge some of the changes from the testplant branch.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40406 72102866-910b-0410-8b05-ffd578937521
2017-03-20 23:04:27 +00:00
Fred Kiefer
db123bcd81 Merge some of the changes from the testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40403 72102866-910b-0410-8b05-ffd578937521
2017-03-19 19:26:04 +00:00
Fred Kiefer
2efe9de227 Merge some of the changes from the testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40362 72102866-910b-0410-8b05-ffd578937521
2017-03-05 22:12:15 +00:00
Fred Kiefer
1323c50d6e * Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:): Add
extra line fragment for empty string here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40350 72102866-910b-0410-8b05-ffd578937521
2017-02-20 22:32:13 +00:00
Fred Kiefer
a33b4c5073 * Source/GSLayoutManager.m (-usedRectForTextContainer:): Add extra
line rect when needed.
	* Source/NSTextView.m (sizeToFit): Don't add extra line rect, as
	it is now already included.
	* Source/NSStringDrawing.m (cache_lookup): Remove hack for empty string.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40346 72102866-910b-0410-8b05-ffd578937521
2017-02-17 19:44:25 +00:00
Fred Kiefer
f5ce3badde * Source/NSStringDrawing.m: Use shared drawing code.
* Source/NSStringDrawing.m (cache_lookup): Try to handle case of
	empty string.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40342 72102866-910b-0410-8b05-ffd578937521
2017-02-12 21:08:51 +00:00
Fred Kiefer
31cb9914d1 * Source/NSStringDrawing.m: Clean up string drawing cache code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40334 72102866-910b-0410-8b05-ffd578937521
2017-02-12 15:47:17 +00:00
Fred Kiefer
3a89e9e7c5 * Source/NSMenu.m (-_isVisible, -_isMain): Add two helper
methods. And make sure we update the menu items before display and
	keyEquivalent processing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40285 72102866-910b-0410-8b05-ffd578937521
2017-01-08 19:33:32 +00:00
Fred Kiefer
baee6ec03b * Source/NSMenu.m (-update): Update only visible submenus.
* Source/NSMenu.m: Complete switch to NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40283 72102866-910b-0410-8b05-ffd578937521
2016-12-31 16:03:01 +00:00
Fred Kiefer
2b401268fc Don't try to get the advancement for GSAttachmentGlyph.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40272 72102866-910b-0410-8b05-ffd578937521
2016-12-18 11:58:31 +00:00
Fred Kiefer
ca8abf4c27 * Headers/Additions/GNUstepGUI/GSToolbarView.h
* Source/GSToolbarView.m
	Change draggedItemIndex to NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40270 72102866-910b-0410-8b05-ffd578937521
2016-12-17 00:00:19 +00:00
Wolfgang Lux
bc9b909528 Change mlock in NSWorkspace into a private variable to avoid name
conflict with a libc function on Linux.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40264 72102866-910b-0410-8b05-ffd578937521
2016-12-15 10:59:09 +00:00
Fred Kiefer
0e6e771ba9 * Headers/AppKit/NSColorPanel.h: Change -alpha to CGFloat.
* Source/NSColorPanel.m: Remove left over GModel loading code.
	Set default mode to colour wheel.
	Small cleanups mostly in comments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40229 72102866-910b-0410-8b05-ffd578937521
2016-11-21 22:33:53 +00:00
Fred Kiefer
0772d452fb * Source/NSColorPanel.m (-_initWithoutGModel): Correct target for
bottom wells.
	* Source/NSColorWell.m (-performClick:): Add this method and use
	it in -mouseUp:.
	Patch by Josh Freeman <pikopixel@twilightedge.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40228 72102866-910b-0410-8b05-ffd578937521
2016-11-21 20:54:13 +00:00
Fred Kiefer
a3d9637182 2016-10-29 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep.m: Set the TIFF subfield type to 0
	instead of 255.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40185 72102866-910b-0410-8b05-ffd578937521
2016-10-29 12:29:26 +00:00
Fred Kiefer
83c7444c8a * Source/NSBitmapImageRep+JPEG.m: Try to handle images with alpha
or planar images correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40175 72102866-910b-0410-8b05-ffd578937521
2016-10-24 21:06:23 +00:00
Gregory John Casamento
7ea5efb7eb Fix for lock issue in gui when starting applications on some platforms. Please try and give feedback as this issue is not consistent. Tested by myself and rmottola.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40170 72102866-910b-0410-8b05-ffd578937521
2016-10-24 08:07:49 +00:00
Fred Kiefer
2f2bda5aa4 * Source/NSWindow.m (NSMiniWindowView -setImage:): Try to handle
an image value of nil. This is needed for Emacs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40168 72102866-910b-0410-8b05-ffd578937521
2016-10-23 20:36:14 +00:00
Fred Kiefer
2572daeff4 * Source/GSLayoutManager.m (-advancementForGlyphAtIndex:):
Simplify this method and move it in the file.
	* Source/NSLayoutManager.m: Use the pre-computed advancement
	instead of calculating it every time.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40167 72102866-910b-0410-8b05-ffd578937521
2016-10-23 20:13:37 +00:00
Fred Kiefer
d0d119d365 * Source/GSLayoutManager.m: Don't try to get the advancement for NSControlGlyph.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40166 72102866-910b-0410-8b05-ffd578937521
2016-10-21 22:42:38 +00:00
Fred Kiefer
6974bf8a4f Some int -> NSInteger and float -> CGFloat transitions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40138 72102866-910b-0410-8b05-ffd578937521
2016-10-08 21:17:53 +00:00
Fred Kiefer
20feeb7212 * Source/GSFontInfo.m (-fontDescriptor): Simplify creation of font
descriptor. Use only the minimal attributes.
	* Source/NSFontDescriptor.m (-postscriptName): Generate PS name
	from font name itself.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40092 72102866-910b-0410-8b05-ffd578937521
2016-09-19 20:53:34 +00:00
Fred Kiefer
bee385f514 * Source/NSDocumentController.m: Add missing semicolon.
Patch by Galen Rhodes <galenrhodes@me.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40048 72102866-910b-0410-8b05-ffd578937521
2016-08-02 20:53:55 +00:00
Riccardo Mottola
c3ab82b30e If we have no face set, don't append null
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40028 72102866-910b-0410-8b05-ffd578937521
2016-07-19 23:03:08 +00:00
Gregory John Casamento
6541c05a04 Move changes to new branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40011 72102866-910b-0410-8b05-ffd578937521
2016-07-18 15:59:44 +00:00
Gregory John Casamento
cd216f8e32 Reverted previous changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40009 72102866-910b-0410-8b05-ffd578937521
2016-07-18 15:47:56 +00:00
Riccardo Mottola
dae84d53ea Use CGFloat as original structures do and double for scale instead of CGFloat -> double -> float
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40006 72102866-910b-0410-8b05-ffd578937521
2016-07-18 09:01:51 +00:00
Gregory John Casamento
dd398ac140 2016-07-16 18:12-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSPrintInfo.m: Add a comment so it's clear what
	this method is meant for.
	* Source/NSView.m: In beginPage🏷️bBox:fonts: align top level
	view with current page dimensions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40002 72102866-910b-0410-8b05-ffd578937521
2016-07-16 22:18:43 +00:00
Riccardo Mottola
4d9feda044 Check explicitely for f_owner and use f_owner and f_flag if checked
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39991 72102866-910b-0410-8b05-ffd578937521
2016-07-12 23:27:31 +00:00
Fred Kiefer
28b1b39b7b * Headers/AppKit/NSDocumentController.h,
* Source/NSDocumentController.m: Add 10.7 methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39978 72102866-910b-0410-8b05-ffd578937521
2016-07-12 08:41:17 +00:00
Riccardo Mottola
2b2964043a Prefer statvfs() over statfs(), use both on linux, disable fs name on unknown systems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39975 72102866-910b-0410-8b05-ffd578937521
2016-07-11 23:41:48 +00:00
Fred Kiefer
58fed6911f Attempt to get NSWorkspace.m to compile again. No idea whether the
resulting behaviour is as intended by the author of the last change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39974 72102866-910b-0410-8b05-ffd578937521
2016-07-11 22:26:34 +00:00
Riccardo Mottola
baa5ac40aa Explicitely check for statfs/statvfs flags member
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39896 72102866-910b-0410-8b05-ffd578937521
2016-06-21 15:43:27 +00:00
Ivan Vučica
4cd4438b88 Releasing gnustep-gui 0.25.0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39865 72102866-910b-0410-8b05-ffd578937521
2016-06-15 23:12:04 +00:00
Fred Kiefer
c3f90683a6 Extract protocol into private header file and use it from both places.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39838 72102866-910b-0410-8b05-ffd578937521
2016-06-04 20:36:46 +00:00
Richard Frith-MacDonald
9edb35c362 Add missing man pages for tools.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39837 72102866-910b-0410-8b05-ffd578937521
2016-06-03 18:47:30 +00:00
Fred Kiefer
78a695bc8e Add class NSIBUserDefinedRuntimeAttributesConnector to handle
newer NIB files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39836 72102866-910b-0410-8b05-ffd578937521
2016-06-02 21:37:03 +00:00
Richard Frith-MacDonald
a0bb18fbcc Minor documentation fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39824 72102866-910b-0410-8b05-ffd578937521
2016-05-31 10:24:19 +00:00
Richard Frith-MacDonald
08910fb913 lintian spelling correctes provided by Eric Heintzmann
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39816 72102866-910b-0410-8b05-ffd578937521
2016-05-28 09:49:15 +00:00
Riccardo Mottola
4770b7d6ea Optimize case for nil label and thus fix crasher on SPARCs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39795 72102866-910b-0410-8b05-ffd578937521
2016-05-20 06:42:28 +00:00
Richard Frith-MacDonald
1b8dd0b36b Regression test improvments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39755 72102866-910b-0410-8b05-ffd578937521
2016-05-13 15:41:27 +00:00
Riccardo Mottola
a26b5a6b25 Add Application folder (patch by Bertrand Dekoninck)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39627 72102866-910b-0410-8b05-ffd578937521
2016-04-06 01:01:58 +00:00
Riccardo Mottola
dfc80058a4 tag is NSInteger* not int* in recent AppKit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39581 72102866-910b-0410-8b05-ffd578937521
2016-03-22 17:17:58 +00:00
Riccardo Mottola
4368207db7 Actually allocate a NSMutableArray, since that is the expected return type
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39577 72102866-910b-0410-8b05-ffd578937521
2016-03-21 10:01:25 +00:00
Gregory John Casamento
3bcb3db150 Reformat recent changelog entries to be correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39539 72102866-910b-0410-8b05-ffd578937521
2016-03-15 00:07:06 +00:00
Gregory John Casamento
12febbf4b9 Reformat recent changelog entries to be correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39538 72102866-910b-0410-8b05-ffd578937521
2016-03-15 00:06:41 +00:00
Riccardo Mottola
93018cffb2 Always traverse links explicitely and get the original path to do icon lookup, not just for Symliks. The symlink may be infact in the middle of the path, not just the last one
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39525 72102866-910b-0410-8b05-ffd578937521
2016-03-10 22:59:46 +00:00
Riccardo Mottola
e00f1870c6 Simplify code by using stringByDeletingLastPathComponent
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39521 72102866-910b-0410-8b05-ffd578937521
2016-03-10 17:42:21 +00:00
Riccardo Mottola
7ff3dd081b Add fall-back that if a folder image is not found, the generic folde ricon is picked up. Also add Movies special folders
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39513 72102866-910b-0410-8b05-ffd578937521
2016-03-09 23:39:52 +00:00
Riccardo Mottola
cb076ad8ed Some new 10.5 and 10.6 named images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39505 72102866-910b-0410-8b05-ffd578937521
2016-03-09 15:36:59 +00:00
Riccardo Mottola
3dc638d6b6 When looking for an icon, check if it is a symbolic link and get the icon of its destination. Behaviour verified on Apple
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39480 72102866-910b-0410-8b05-ffd578937521
2016-03-08 14:19:07 +00:00
Riccardo Mottola
30047756ef Add missing implementation, by mounting exclusively the path specified in GSRemovableMediaPaths
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39378 72102866-910b-0410-8b05-ffd578937521
2016-02-16 17:23:45 +00:00
Riccardo Mottola
01e71d106c Use standard setmntent to open file and remember to close it with endmntent! Try better guess to use system defines to get mttab path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39377 72102866-910b-0410-8b05-ffd578937521
2016-02-16 13:56:01 +00:00
Riccardo Mottola
2589ad3e7d Enhance unmount with eject support on certain platforms, generate NSWorkspaceWillUnmountNotification notification.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39370 72102866-910b-0410-8b05-ffd578937521
2016-02-13 22:20:20 +00:00
Riccardo Mottola
7d7cf59383 Try to support volume information on Linux better as well as using GSRemovableMediaPaths defaults for removable information (compared to nothing at all).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39363 72102866-910b-0410-8b05-ffd578937521
2016-02-12 12:09:23 +00:00
Riccardo Mottola
c442abbaab Trivial implementation of new 10.9 drawInRect: method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39332 72102866-910b-0410-8b05-ffd578937521
2016-02-03 00:08:23 +00:00
Ivan Vučica
0dd7fa30d1 Opted to undo the -[NSBezierPath setLineDash:] patch's check for
count > _dash_count, as NSZoneRealloc() should be allowed to
reduce the allocated block's size.

Additionally, updated ChangeLog.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39287 72102866-910b-0410-8b05-ffd578937521
2016-01-17 21:36:14 +00:00
Riccardo Mottola
3ac59cea1d Provide NSImageNameTrashEmpty NSImageNameTrashFull NSImageNameMultipleDocuments image, both constants and actual icon
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39183 72102866-910b-0410-8b05-ffd578937521
2015-11-18 23:05:00 +00:00
Richard Frith-MacDonald
79e04b545a Try Fred's idea for theme image lookup improvement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39168 72102866-910b-0410-8b05-ffd578937521
2015-11-12 08:33:35 +00:00
Fred Kiefer
e61577a98f * Source/GSToolTips.m (-_timedOut:): Break long tool tips into
multiple lines.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39130 72102866-910b-0410-8b05-ffd578937521
2015-11-03 08:33:31 +00:00
Fred Kiefer
b76a7b9593 * Source/NSWindow.m (-constrainFrameRect:toScreen:) Handle
screen being nil and resize only if moving is not enough.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39126 72102866-910b-0410-8b05-ffd578937521
2015-11-02 21:14:11 +00:00
Richard Frith-MacDonald
ff8d56fd1b possible fix for ivan's StepOPML editor problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39118 72102866-910b-0410-8b05-ffd578937521
2015-11-02 16:02:27 +00:00
Richard Frith-MacDonald
23533e0570 Allow GUI to build when base has been configured without libxml2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39113 72102866-910b-0410-8b05-ffd578937521
2015-11-01 23:09:40 +00:00
Richard Frith-MacDonald
1501023c3b Theme alteration for Riccardo, plus some formatting tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39110 72102866-910b-0410-8b05-ffd578937521
2015-11-01 15:38:47 +00:00
Riccardo Mottola
b4840b3c89 Primitive presentationOptions implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39100 72102866-910b-0410-8b05-ffd578937521
2015-10-28 01:39:07 +00:00
Riccardo Mottola
ef3942ac38 Stub 10.8 methods for allowsMagnification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39099 72102866-910b-0410-8b05-ffd578937521
2015-10-28 00:42:40 +00:00
Fred Kiefer
0dda8778b9 * Source/NSPasteboard.m (-_pbs): Fix waiting forever if gpbs
crashes within a certain window.
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39098 72102866-910b-0410-8b05-ffd578937521
2015-10-27 22:24:32 +00:00
Riccardo Mottola
40e0788f6d Change also internal methods and ivars to reflect NSInteger transition of rows and columns.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39094 72102866-910b-0410-8b05-ffd578937521
2015-10-27 18:11:46 +00:00
Fred Kiefer
7272bf329b * Source/NSBitmapImageRep.m
(TIFFRepresentationOfImageRepsInArray:): Only return a non-null
        NSData object.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39090 72102866-910b-0410-8b05-ffd578937521
2015-10-24 21:16:46 +00:00
Fred Kiefer
106014c439 * Source/NSWindowController.m (-_windowWillClose:): Don't unset
the delegate and the controller of the window, this gets done in
        setWindow: a bit later.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39087 72102866-910b-0410-8b05-ffd578937521
2015-10-22 21:27:31 +00:00
Fred Kiefer
f059d346a6 * Source/NSSegmentedCell.m (-drawSegment:inFrame:withView:):
Use centerScanRect: to position the image.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39080 72102866-910b-0410-8b05-ffd578937521
2015-10-18 16:25:53 +00:00
Fred Kiefer
bbac2bf53c * Source/NSAttributedString.m (-_substituteFontFor:font:): Use
font descriptors for faster replacement font detection.
        * Source/GSFontInfo.m
        (GSFontEnumerator-matchingFontDescriptorsFor:): Special handling
        for NSFontCharacterSetAttribute.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39079 72102866-910b-0410-8b05-ffd578937521
2015-10-17 19:49:15 +00:00
Fred Kiefer
0ea4141ac0 * Source/NSCell.m (-trackMouse:...untilMouseUp:): Check enabled
and use isContinuous method.
        * Source/NSSliderCell.m: Replace specific implementation of
        -trackMouse:...untilMouseUp: with super class one and move
        specific code into helper methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39077 72102866-910b-0410-8b05-ffd578937521
2015-10-16 22:01:41 +00:00
Riccardo Mottola
7667180ed3 Add NSAnimationContext to umbrella header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39075 72102866-910b-0410-8b05-ffd578937521
2015-10-15 15:53:56 +00:00
Fred Kiefer
4d5254c74a 2015-10-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep.m: Correct bug in fast path for image
        premultiply/unpremultiply.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39062 72102866-910b-0410-8b05-ffd578937521
2015-10-13 22:04:35 +00:00
Gregory John Casamento
20997976b9 Additional stubs for NSAnimationContext.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39051 72102866-910b-0410-8b05-ffd578937521
2015-10-10 22:59:12 +00:00
Fred Kiefer
8e8a1af817 * Source/nsimage-tiff.h: Correct field types.
* Source/NSImage.m (-TIFFRepresentation)
        (TIFFRepresentationUsingCompression:factor:): Pass on bitmaps
only.
        * Source/NSBitmapImageRep.m: Implement methods to generate tiff
        for multiple bitmaps.
        * Source/tiff.m: Fix long standing bug in TiffHandleSeek.
        In NSTiffWrite write image tiff directory to allow for multiple
        images.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39050 72102866-910b-0410-8b05-ffd578937521
2015-10-10 19:18:33 +00:00
Fred Kiefer
9e7ea1d911 * Source/NSGraphicsContext.m (-initWithContextInfo:): Move the
default setting into back.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39045 72102866-910b-0410-8b05-ffd578937521
2015-10-09 00:12:47 +00:00
Riccardo Mottola
fab20ad389 Add NSTableViewSelectionHighlightStyle type and stub accessors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39019 72102866-910b-0410-8b05-ffd578937521
2015-10-02 09:47:29 +00:00
Fred Kiefer
c6ff85bf23 * Source/NSGraphicsContext.m (-initWithContextInfo:): Set some
default values for the graphics context.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39017 72102866-910b-0410-8b05-ffd578937521
2015-09-25 08:34:25 +00:00
Fred Kiefer
065d45ff59 * Headers/AppKit/NSMenu.h,
* Source/externs.m: Add NSMenuDidBeginTrackingNotification.
        * Source/NSMenuView.m (-trackWithEvent:): send tracking
        notifications.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39008 72102866-910b-0410-8b05-ffd578937521
2015-09-21 20:37:56 +00:00
Fred Kiefer
be98a77769 * Source/GSThemeDrawing.m (-drawTableViewRect:inView:): Use
correct imp type.
        * Source/NSButtonCell.m (-setBackgroundColor:): Update the
        control view.
        * Source/NSSegmentedCell.m (-drawSegment:inFrame:withView:):
        * Draw
        image if available.
        * Source/NSPopUpButtonCell.m (-initWithCoder:): Add work around
        for NSClassSwapper cell replacement.
        Patches based on changes by Josh Freeman
        <pikopixel@twilightedge.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39006 72102866-910b-0410-8b05-ffd578937521
2015-09-20 21:16:33 +00:00
Fred Kiefer
1d2c5d5ebd First set of changes based on pathces by Josh Freeman
<pikopixel@twilightedge.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39004 72102866-910b-0410-8b05-ffd578937521
2015-09-19 16:45:36 +00:00
Fred Kiefer
ff61d4c642 2015-09-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextView.m: Invalidate insertion point timer in
        dealloc.
        * Source/NSToolbarItem.m: Check for drawing rect within bounds
        before drawing toolbar item.
        Patch by Marcian Lytwyn <gna@advcsi.com>.

2015-09-10  Doug Simons <doug.simons@testplant.com> and Paul Landers
<paul.landers@testplant.com>

        * Source/NSLayoutManager.m: Fix a bug that would try to adjust
        the length of the selected range to a negative number, leading
        to an exception and eventual crashes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38986 72102866-910b-0410-8b05-ffd578937521
2015-09-13 21:36:40 +00:00
Riccardo Mottola
7a251b66ec Constants and methods for Expose and other features we don't have and perhaps never will
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38942 72102866-910b-0410-8b05-ffd578937521
2015-08-28 22:39:48 +00:00
Riccardo Mottola
dbcaec319a Add more (dummy) layer property stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38940 72102866-910b-0410-8b05-ffd578937521
2015-08-28 20:26:30 +00:00
Fred Kiefer
f65931aa6c * Source/GSTextFinder.m: Fix Ignore Case option to work.
Patch by Doug Simons <doug.simons@testplant.com>
        * Source/NSControl.m (-initWithCoder:): Don't use NSEnabled flag
        as it is wrong for NSComboBox.
        * Source/NSComboBoxCell.m (_loadButtonCell): Set enabled on
        button cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38933 72102866-910b-0410-8b05-ffd578937521
2015-08-26 21:10:12 +00:00
Fred Kiefer
59fa666263 * Tests/gui/NSView/NSView_autoresize_and_rounding.m: Add tests
for centerScanRect: with flipped view.
        * Source/NSView.m (-centerScanRect:): Change to get the failed
        tests to pass.
        * Source/GSThemeTools.m (-drawRoundBezel:withColor:): Make round
        bezel look a bit nicer.
        * Source/NSButtonCell.m (-drawImage:withFrame:inView:): Use
        centerScanRect: instead of similar code.
        * Source/NSCell.m: Use imageRectForBounds: and
        titleRectForBounds: in drawInteriorWithFrame:inView:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38929 72102866-910b-0410-8b05-ffd578937521
2015-08-25 21:33:04 +00:00
Riccardo Mottola
fe491f33da Define NSFullScreenWindowMask.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38924 72102866-910b-0410-8b05-ffd578937521
2015-08-24 12:50:07 +00:00
Riccardo Mottola
c919c925f9 Add horiz and vert elastiticty properties and constants
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38920 72102866-910b-0410-8b05-ffd578937521
2015-08-23 21:44:40 +00:00
Fred Kiefer
cc73eeacdc * Source/NSBundleAdditions.m,
* Source/NSNibConnector.m: Move NSNibConnector and subclasses in
        separate file. Add isEqual: method from Gorm. Switch to new
        libobjc runtime ivar access for NSNibOutletConnector.
        * Source/GNUmakefile: Add new file NSNibConnector.m
        * Source/GSXibLoader.m: Similar change to IBOutletConnection.
        Replace GSMime base64 decode method with standard one.
        * Source/GSImageMagickImageRep.m,
        * Source/GSTheme.m: Remove unused #import.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38919 72102866-910b-0410-8b05-ffd578937521
2015-08-23 17:10:39 +00:00
Fred Kiefer
096c0ad2de * Source/NSInputManager.m: Add binding processing code for
escape key and make list of bindings easier to extend.
        * KeyBindings/DefaultKeyBindings.dict: Add default escape key
        binding to complete: method.
        Patch by Marcian Lytwyn <gna@advcsi.com>.
        * Source/NSInputManager.m: Fixed alt behaviors for return
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38918 72102866-910b-0410-8b05-ffd578937521
2015-08-22 22:09:01 +00:00
Fred Kiefer
9d24c2a90b * Source/NSMatrix.m: Remove GC ifdefs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38914 72102866-910b-0410-8b05-ffd578937521
2015-08-21 19:21:46 +00:00
Fred Kiefer
9b58665ac7 * Resources/Korean.lproj/Localizable.strings: Add Korean
translations.
        Patch by Seong-Gu Lee <sgleehd@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38890 72102866-910b-0410-8b05-ffd578937521
2015-08-16 20:11:58 +00:00
Fred Kiefer
8944e46035 * Source/NSSplitView.m (-setAutosaveName:): Treat an empty
autosaveName as nil to fix problem with some nibs.
        Patch by Doug Simons <doug.simons@testplant.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38889 72102866-910b-0410-8b05-ffd578937521
2015-08-16 19:39:25 +00:00
Fred Kiefer
0f94132171 * Source/NSMatrix.m: Warn about wrong cell array size on
row/column insert, as Cocoa does.
        Clean up and more NSInteger changes.
        * ColorPickers/GSStandardColorPicker.m,
        * Source/NSColorPanel.m (-_setupPickers): Prevent warning from
        NSMatrix.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38883 72102866-910b-0410-8b05-ffd578937521
2015-08-14 12:52:09 +00:00
Fred Kiefer
fd098d8eda * Source/NSButtonCell.m (-initWithCoder:):
Fix image scaling value extract from XIB.
        * Headers/Additions/GNUstepGUI/GSXibLoading.h
        * Source/GSXibLoading.m
        * Source/GSXibLoader.m
        Add IB defined runtime attribute processing for XIB
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38882 72102866-910b-0410-8b05-ffd578937521
2015-08-13 22:03:03 +00:00
Fred Kiefer
a3ca885ec8 * Source/NSTextView.m: Rewrite
writeSelectionToPasteboard:... methods.
        Based on patch by Adam Fox <adam.fox@testplant.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38871 72102866-910b-0410-8b05-ffd578937521
2015-08-11 21:46:11 +00:00
Fred Kiefer
19fe8aeda4 2015-07-24 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSFont.m: Look for xib font property IBIsSystemFont.
        Patch by Paul Landers <paul.landers@testplant.com>.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38837 72102866-910b-0410-8b05-ffd578937521
2015-07-24 14:15:22 +00:00
Fred Kiefer
e67303d25d 2015-07-24 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextStorage.m: Fixed a bug with setting _editedRange
        for multiple edits when the first one is a delete (which results in
        _editedRange having a length of 0) so it gets replaced instead
        of expanded to include all edits.
        Patch by Doug Simons <doug.simons@testplant.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38836 72102866-910b-0410-8b05-ffd578937521
2015-07-24 13:58:58 +00:00
Germán Arias
5e2eebece5 Add Spanish translations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38715 72102866-910b-0410-8b05-ffd578937521
2015-06-28 06:07:12 +00:00
Gregory John Casamento
971a573445 Add drawing methods for theming NSBrowserCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38690 72102866-910b-0410-8b05-ffd578937521
2015-06-26 05:27:12 +00:00
Gregory John Casamento
4213323979 Add more theme methods for theming windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38687 72102866-910b-0410-8b05-ffd578937521
2015-06-26 00:13:05 +00:00
Gregory John Casamento
0ff0a07742 Added methods to retrieve dimensions for titlebar buttons and padding dimensions in a theme specific way rather than having them hard-coded.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38681 72102866-910b-0410-8b05-ffd578937521
2015-06-25 18:18:41 +00:00
Gregory John Casamento
8031e43fbc Add skeleton for NSAnimationContext.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38637 72102866-910b-0410-8b05-ffd578937521
2015-06-14 21:47:43 +00:00
Fred Kiefer
d454877a79 * Source/NSSplitView.m: Be sure to adjust subviews before
setting  divider position. Otherwise, adjustSubviews will wipe out the
        setting.
        Patch by Doug Simons <doug.simons@testplant.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38626 72102866-910b-0410-8b05-ffd578937521
2015-06-12 14:36:15 +00:00
Fred Kiefer
cd07fc293b Regenerate string files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38582 72102866-910b-0410-8b05-ffd578937521
2015-05-28 22:17:02 +00:00
Fred Kiefer
41d42922c2 * Source/NSBitmapImageRep+GIF.m: Handle EGifOpen similar to
other version specific functions.
        * Headers/Additions/GNUstepGUI/GSXibElement.h
        * Headers/Additions/GNUstepGUI/GSXibLoading.h
        * Headers/Additions/GNUstepGUI/GSXibObjectContainer.h
        * Headers/Additions/GNUstepGUI/GSXibParser.h
        Correct FSF address.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38581 72102866-910b-0410-8b05-ffd578937521
2015-05-28 21:44:19 +00:00
Sebastian Reitenbach
8060ece175 abs() -> fabs()
OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38572 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:57:19 +00:00
Sebastian Reitenbach
8b6d21351b Missed in last commit of format string fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38570 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:17:16 +00:00
Sebastian Reitenbach
6d5a0cc236 A bunch of format string fixes and some casts to force formats
No objections from Fred Kiefer ;)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38569 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:15:16 +00:00
Sebastian Reitenbach
18910829e4 return value for NSMenu itemAtIndex change from
id<NSMenuItem> to NSMenuitem* as it is done by Apple too
          fixes warnings in NSApplication.m and NSTextView.m

OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38568 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:11:17 +00:00
Sebastian Reitenbach
e097f5d773 Remove some extra parameters from debug outputs
OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38567 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:08:41 +00:00
Fred Kiefer
2a7e1fbf65 * ChangeLog: Correct version number in last commit.
* Source/NSButtonCell.m (-encodeWithCoder:): Correct bug with
        image position in NSButtonFlags.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38526 72102866-910b-0410-8b05-ffd578937521
2015-05-22 20:41:31 +00:00
Richard Frith-MacDonald
17354e9638 new bugfix release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38502 72102866-910b-0410-8b05-ffd578937521
2015-05-16 08:08:54 +00:00
Riccardo Mottola
7c1a0d36c2 Copied from base: only warn if compiler is different from the one configured in make
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38493 72102866-910b-0410-8b05-ffd578937521
2015-05-13 21:04:45 +00:00
Riccardo Mottola
b8d1c2e9f2 pick up gnustep make configured CC, CPP, CXX and check they are consistent with how make was configured
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38488 72102866-910b-0410-8b05-ffd578937521
2015-05-12 18:34:32 +00:00
Ivan Vučica
d3861e224c Better support for setting errors inside -dataOfType:error: and -readFromData:ofType:error:.
Previously, under GNUstep, NSLocalizedFailureReasonKey was ignored when
presented with +[NSAlert alertWithError]. Additionally, error set in
-readFromData:ofType:error: was overwritten by two different methods in the
file reading chain.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38483 72102866-910b-0410-8b05-ffd578937521
2015-05-10 19:10:56 +00:00
Fred Kiefer
1a8e5a320b * Headers/AppKit/NSColor.h,
* Source/NSColor.m: Add OSX 10 named colours.
        * Source/NSColorList.m: Add keyed coding/decoding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38449 72102866-910b-0410-8b05-ffd578937521
2015-04-02 22:54:42 +00:00
Fred Kiefer
a47ee28eae * Source/NSSavePanel.m: Fix problem with the title shown in
the save panel's title bar not matching the set title when
        the panel is reused for a different purpose.
        Patch by Doug Simons <doug.simons@testplant.com>
        * Source/NSApplication.m: Adjust modal window position to
        relative window requested.
        Patch by Marcian Lytwyn <gna@advcsi.com> with small change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38440 72102866-910b-0410-8b05-ffd578937521
2015-03-27 21:33:24 +00:00
Fred Kiefer
6d27cf76b1 * Images/NSRemoveTemplate.tiff: Add file.
* Images/GNUmakefile: Handle new file.
        * Source/GSXibLoader.m: Better error reporting for wrong
        application class.
        * Source/NSOutline.m (-drawRow:clipRect:): Don't set the value
        for the edited cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38408 72102866-910b-0410-8b05-ffd578937521
2015-03-15 23:31:43 +00:00
Fred Kiefer
830a6ef782 * Source/NSCollectionView.m (-newItemForRepresentedObject:):
Don't autorelease the returned object as this method starts with
        "new".
        * Source/NSCollectionViewItem.m (-copyWithZone:): Add call to
        new method to copy over the bindings from the old view hierarchy to
        the new.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38405 72102866-910b-0410-8b05-ffd578937521
2015-03-12 22:13:42 +00:00
Germán Arias
0bdd4d0ae6 Add class method +count in NSCursor to handle cursors on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38403 72102866-910b-0410-8b05-ffd578937521
2015-03-12 05:34:08 +00:00
Fred Kiefer
7d8ad46759 * Source/NSImageView.m (-initWithCoder:): Set default for
AllowsCutCopyPaste.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38393 72102866-910b-0410-8b05-ffd578937521
2015-03-10 23:16:44 +00:00
Fred Kiefer
6a2ccd78ac * Source/NSCollectionViewItem.m: Fix reference counting in
-copyWithZone:. Remove method -view again.
        * Source/NSArrayController.m: Fix reference counting in
        -newItemForRepresentedObject. Protect -_resetItemSize from
        missing prototype view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38392 72102866-910b-0410-8b05-ffd578937521
2015-03-10 23:02:09 +00:00
Fred Kiefer
f54ce64d99 * Source/NSCollectionView.m (-tile): Prevent _numberOfColumns
from being 0.
        * Source/NSArrayController.m: Revert last change and add proper
        handling of arrangeObjects for many cases.
        * Source/NSCollectionViewItem.m: Fix reference counting. Add
        method -view to have something to display.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38387 72102866-910b-0410-8b05-ffd578937521
2015-03-08 22:23:06 +00:00
Germán Arias
954ab51922 Fix to load PPD files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38385 72102866-910b-0410-8b05-ffd578937521
2015-03-08 06:02:38 +00:00
Fred Kiefer
8206719047 * Source/NSCollectionView.m (+initialize): Add binding for
content.
        * Source/NSViewController.m (-loadView): Don't try to load the
        view if there is no name for the NIB.
        * Source/NSArrayController.m (-initWithContent:): Sets
        automaticallyRearrangesObjects to true.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38384 72102866-910b-0410-8b05-ffd578937521
2015-03-06 22:40:27 +00:00
Fred Kiefer
896756ae92 * Source/NSCollectionView.m (-drawRect:): Work around strange
behaviour of compiler.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38382 72102866-910b-0410-8b05-ffd578937521
2015-03-05 22:05:17 +00:00
Fred Kiefer
a0e08ea59a * Source/NSImageView.m (-initWithFrame:): Set default for
AllowsCutCopyPaste.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38380 72102866-910b-0410-8b05-ffd578937521
2015-03-05 21:10:31 +00:00
Germán Arias
86b7f99808 Fix last revert.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38365 72102866-910b-0410-8b05-ffd578937521
2015-02-24 06:14:50 +00:00
Germán Arias
03869b5d03 revert last commits.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38364 72102866-910b-0410-8b05-ffd578937521
2015-02-23 23:26:23 +00:00
Germán Arias
699c768ee7 Fix for tooltips on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38363 72102866-910b-0410-8b05-ffd578937521
2015-02-23 19:22:16 +00:00
Germán Arias
708aac6819 Use buffered windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38357 72102866-910b-0410-8b05-ffd578937521
2015-02-23 08:05:10 +00:00
Fred Kiefer
8b6e6bb752 * Source/NSCell.m (-copyWithZone:): Fix copy and paste error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38352 72102866-910b-0410-8b05-ffd578937521
2015-02-20 22:41:31 +00:00
Gregory John Casamento
8593423165 Remove classes from the win32 printing bundle which belong in the theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38328 72102866-910b-0410-8b05-ffd578937521
2015-02-04 01:22:46 +00:00
Gregory John Casamento
5d9a261362 Move declarations of GSPrintPanel and GSPageLayout to theme and remove uneeded classes since they are not used and only override allocWithZone:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38324 72102866-910b-0410-8b05-ffd578937521
2015-02-03 20:26:10 +00:00
Gregory John Casamento
643cac4468 Allow override of the print panels from the theme or from the printing bundle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38322 72102866-910b-0410-8b05-ffd578937521
2015-02-02 23:39:08 +00:00
Gregory John Casamento
d628aac2e3 Correct issue I introduced last night. Continue moving print panel/layout panel implementation to theme instead of print bundle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38321 72102866-910b-0410-8b05-ffd578937521
2015-02-02 17:05:16 +00:00
Gregory John Casamento
e53b5e2e46 Add print panels to theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38318 72102866-910b-0410-8b05-ffd578937521
2015-02-01 20:46:37 +00:00
Fred Kiefer
09614d4d35 * Source/GSTextStorage.m
* Source/NSSpellChecker.m
        Two small cleanups.
        Patch by Marat Ibadinov <ibadinov@me.com>
        * Source/NSLayoutManager.m
        Changed == to >= to fix a crash when layout_char is beyond the
        length of the string.
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38312 72102866-910b-0410-8b05-ffd578937521
2015-01-31 18:19:29 +00:00
Fred Kiefer
8da8a7add8 * Source/NSBitmapImageRep.m (-copyWithZone): Changed the call
from -copyWithZone: to -mutableCopyWithZone:. 
        * Tests/gui/NSBitmapImageRep/testcopy.m: Test for this change
        Patch by Josh Freeman <tedge>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38301 72102866-910b-0410-8b05-ffd578937521
2015-01-23 17:16:08 +00:00
Fred Kiefer
29f4f8c512 * Source/tiff.m: Correct check for old libtiff version based on
idea by Riccardo Mottola <rm@gnu.org>.
        Remove all usages of deprecated types.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38300 72102866-910b-0410-8b05-ffd578937521
2015-01-23 13:29:38 +00:00
Fred Kiefer
e40611ea6c * Source/NSMenu.m (-update): Added case to menu autoenabler to
disable supermenus that have empty submenus, when there is no
        validator.
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38289 72102866-910b-0410-8b05-ffd578937521
2015-01-11 21:56:27 +00:00
Fred Kiefer
a8f35bbb94 * Source/NSTextView.m: Fix bizarre behavior with undo/redo
actions carrying across between different fields with the
        fieldEditor.
        Patch by Doug Simons <doug.simons@testplant.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38288 72102866-910b-0410-8b05-ffd578937521
2015-01-11 21:53:19 +00:00
Fred Kiefer
51276dc346 * Source/tiff.m: Use type tmsize_t.
Base on patch by Marat Ibadinov <ibadinov@me.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38287 72102866-910b-0410-8b05-ffd578937521
2015-01-11 21:51:20 +00:00
Fred Kiefer
6b0a46b215 * Source/NSTextView.m: Protect usages of sharedSpellChecker with
nil tests.
  Patch by Eric Wasylishen <ewasylishen@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38283 72102866-910b-0410-8b05-ffd578937521
2015-01-08 20:36:40 +00:00
Riccardo Mottola
db33ab6d5a floor rects
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38278 72102866-910b-0410-8b05-ffd578937521
2015-01-05 14:24:28 +00:00
Riccardo Mottola
11a55d01f1 Use protocol not class for NSMenuItem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38277 72102866-910b-0410-8b05-ffd578937521
2015-01-05 14:01:47 +00:00
Germán Arias
b0ab141b9a Fix tooltips issue with a change suggested by Fred.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38262 72102866-910b-0410-8b05-ffd578937521
2014-12-26 07:59:29 +00:00
Fred Kiefer
5e48d016ef * Source/NSDocumentFrameworkPrivate.h,
* Source/NSDocumentController.m:
        Open recent menu to clear items that have been deleted whenever
it reloads.
        Based on patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38242 72102866-910b-0410-8b05-ffd578937521
2014-12-08 16:03:49 +00:00
Fred Kiefer
92e67217a4 * Source/GSToolTips.m: Fixed two issues with tooltips.
(a) locationInView was being converted twice, producing invalid
        coordinates the second time, when using a provider to get the
        tooltips.
        (b) Tooltips were not working if you had two tracking rects next
        to each other in the same view, when moving from one to the
other,
        depending on the order they were processed, one could get the
        enter before the other's exit, thus canceling the timer.
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38241 72102866-910b-0410-8b05-ffd578937521
2014-12-08 15:29:11 +00:00
Fred Kiefer
903a37dd68 * Headers/AppKit/NSTableView.h,
* Source/NSTableView.m:
        Create working stubs for table view batch insertions/removals of
rows
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38240 72102866-910b-0410-8b05-ffd578937521
2014-12-08 15:08:53 +00:00
Fred Kiefer
2c4e998af6 * Source/NSParagraphStyle.m (-description): Add method.
Based on patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38239 72102866-910b-0410-8b05-ffd578937521
2014-12-08 10:51:39 +00:00
Fred Kiefer
6fc06cce3d * Source/NSLayoutManager.m
(_insertionPointRectForCharacterIndex:textContainer:): Fix
initial
        cursor insertion location with paragraph alignment setting.
        This patch has no visual effect as the alignment of the typing
        attributes never gets set.
        Based on patch by Marcian Lytwyn <gna@advcsi.com>.
        * Source/NSLayoutManager.m: Fix some compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38238 72102866-910b-0410-8b05-ffd578937521
2014-12-08 10:09:42 +00:00
Fred Kiefer
00928ee6ea * Headers/Additions/GNUstepGUI/GSXibLoading.h,
* Source/GSXibLoader.m: Fix object ID parsing in XIB loading due
        to Apple moving to string ID represenatation.
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38236 72102866-910b-0410-8b05-ffd578937521
2014-12-07 16:38:40 +00:00
Fred Kiefer
4d8a91d0e0 * Source/NSToolbarItem.m: Fix tool bar item tool tips.
Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38226 72102866-910b-0410-8b05-ffd578937521
2014-12-02 22:34:07 +00:00
Fred Kiefer
d56182771b * Source/NSBitmapImageRep.m (-copyWithZone:) Deep copy ivar _properties.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38217 72102866-910b-0410-8b05-ffd578937521
2014-11-30 20:45:29 +00:00
Fred Kiefer
ffe06259ba * Headers/AppKit/NSBrowser.h,
* Headers/AppKit/NSComboBoxCell.h: Add missing protocol
  declarations.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38174 72102866-910b-0410-8b05-ffd578937521
2014-11-16 14:19:11 +00:00
Fred Kiefer
47dc548684 * Source/NSParagraphStyle.m (+defaultParagraphStyle): Comment
out
  tabs in default paragraph style as Apple doesn't seem to have
them.
* Source/GSNibLoading.m: Set the main menu already when
  instantiating the top level objects. Thi is needed for newer
  versions of NIB files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38160 72102866-910b-0410-8b05-ffd578937521
2014-11-04 21:22:26 +00:00
Fred Kiefer
ef6d4ff0dc * TextConverters/RTF/RTFConsumer.m: Add empty appendImage:
method for RTFConsumer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38142 72102866-910b-0410-8b05-ffd578937521
2014-10-31 14:24:16 +00:00
Fred Kiefer
f36bb5811e * Source/NSLayoutManager.m
(-drawBackgroundForGlyphRange:atPoint:): Make save against
        glyph_run being null. Should fix part of #43454.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38141 72102866-910b-0410-8b05-ffd578937521
2014-10-31 14:12:44 +00:00
Fred Kiefer
b6e0d5b61f * Source/NSParagraphStyle.m,
* Source/NSTextList.m: Add keyed en-/decoding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38134 72102866-910b-0410-8b05-ffd578937521
2014-10-25 17:59:36 +00:00
Fred Kiefer
c88e9fdf8a Handle more complex RTF font tables.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38107 72102866-910b-0410-8b05-ffd578937521
2014-10-05 20:49:40 +00:00
Fred Kiefer
ab61aefcfa * Source/NSImage.m (-lockFocusOnRepresentation:): Allow image
caching during printing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38106 72102866-910b-0410-8b05-ffd578937521
2014-10-05 19:59:37 +00:00
Gregory John Casamento
70baf43d54 Improvements to windows printing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38099 72102866-910b-0410-8b05-ffd578937521
2014-09-28 08:03:55 +00:00
Gregory John Casamento
ce5923f681 Linker error and new function.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38098 72102866-910b-0410-8b05-ffd578937521
2014-09-28 01:12:31 +00:00
Gregory John Casamento
b28fde9173 Windows printing backend, first cut for panels.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38084 72102866-910b-0410-8b05-ffd578937521
2014-09-16 16:31:41 +00:00
Gregory John Casamento
0934169b8f Fix issue with saving text contents of a cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38053 72102866-910b-0410-8b05-ffd578937521
2014-09-01 05:33:35 +00:00
Gregory John Casamento
ea086d02cf Change return of -drawTitle:withFrame:inView to NSRect instead of void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38049 72102866-910b-0410-8b05-ffd578937521
2014-08-21 02:52:06 +00:00
Gregory John Casamento
06f21dcd0d Change -[NSWindow constrainFrameRect:toScreen:] to correct x origin if needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38046 72102866-910b-0410-8b05-ffd578937521
2014-08-18 16:16:52 +00:00
Gregory John Casamento
493e34b57e Remove uneeded code from NSWindow in initWithContentRect:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38013 72102866-910b-0410-8b05-ffd578937521
2014-07-25 11:32:54 +00:00
Fred Kiefer
8bc228a47e * Source/GSGormLoading.m (GSWindowTemplate initWithCoder:):
Remove replace to none assigned variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38005 72102866-910b-0410-8b05-ffd578937521
2014-07-24 21:09:05 +00:00
Fred Kiefer
77ef14dcd8 * Source/NSBox.m (-calcSizesAllowingNegative): Protect against
_cell being nil.
* Source/NSBox.m (-initWithCoder:): Add a few default values.
* Source/NSMenu.m (-_setGeometry): Protect against _aWindow
  being nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38003 72102866-910b-0410-8b05-ffd578937521
2014-07-21 08:04:32 +00:00
Fred Kiefer
80cac045e1 * Source/GSWindowDecorationView.m (-changeWindowHeight:): Add
workaround to adjust window min and max size when the height changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37982 72102866-910b-0410-8b05-ffd578937521
2014-07-04 18:10:38 +00:00
Fred Kiefer
c973c719b5 Rewrite parsing RTF link fields.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37947 72102866-910b-0410-8b05-ffd578937521
2014-06-17 21:06:11 +00:00
Fred Kiefer
b48b73ee82 Add support to parse link fields in RTF. This enables copying of links
in NSTextView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37946 72102866-910b-0410-8b05-ffd578937521
2014-06-15 21:38:40 +00:00
Fred Kiefer
19030119ab * Source/externs.m: Correct many string values that where
different to Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37943 72102866-910b-0410-8b05-ffd578937521
2014-06-09 10:21:22 +00:00
Riccardo Mottola
9dd0b22408 Rewrite Open compatibility with a more readable macro
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37936 72102866-910b-0410-8b05-ffd578937521
2014-06-03 12:48:13 +00:00
Riccardo Mottola
ace444c24b Add giflib 5.1 compatibility through macro.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37935 72102866-910b-0410-8b05-ffd578937521
2014-06-03 11:18:55 +00:00
Sebastian Reitenbach
e5ceef02b4 * Headers/AppKit/NSStatusItem.h
* Source/NSStatusItem.m
        make return value of -sendActionOn: match apple documentation


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37925 72102866-910b-0410-8b05-ffd578937521
2014-05-30 12:28:59 +00:00
Riccardo Mottola
44500d28e6 Transform 0..255 compression factor to 0..1 quality to match Cocoa specs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37898 72102866-910b-0410-8b05-ffd578937521
2014-05-21 14:52:09 +00:00
Ivan Vučica
94c5228058 Added fields Packager, Vendor and URL into the specfile. Included Master/deb.make to be able to build deb packages for gnustep-gui.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37833 72102866-910b-0410-8b05-ffd578937521
2014-05-04 21:19:24 +00:00
Ivan Vučica
8a34cc60b4 Don't fail if 'gnustep-tests --clean' fails.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37832 72102866-910b-0410-8b05-ffd578937521
2014-05-04 21:15:28 +00:00
Fred Kiefer
59b1180d27 * Source/GSXibLoader.m (-awake:inContainer:withContext:): Allow
for subclasses of NSApplication as rootObjects.
        Based on patch by Marcian Lytwyn <gna@advcsi.com>.
        * Source/NSWindow.m (-userSpaceScaleFactor): Handle case where
        _screen is nil.
        Patch by Doug Simons (dsimons@testplant.com).
        * Source/NSWindow.m (-_screenForFrame:): Require real overlapp.
        Patch by Doug Simons (dsimons@testplant.com).
        * Source/NSTextField.m (-textDidChange:): Improve editing
        behavior when formatter returns a new string.
        Patch by Doug Simons (dsimons@testplant.com).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37830 72102866-910b-0410-8b05-ffd578937521
2014-05-03 21:45:47 +00:00
Fred Kiefer
dcb4ac58f2 * Source/NSWindow.m: (-setFrame:): Revert last change.
* Source/NSWindow.m: (-encodeWithCoder:, -initWithCoder:): Use
  content min/max size instead of min/max size.
* Source/NSWindow.m: (+initialize): Increase version number to 3.
* Source/GSNibLoading.m (NSWindowTemplate -encodeWithCoder:,
  -initWithCoder:): Use NSWindowContentMinSize/NSWindowContentMaxSize
  instead of NSMinSize/NSMaxSize.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37828 72102866-910b-0410-8b05-ffd578937521
2014-05-03 18:32:20 +00:00
Gregory John Casamento
1e9799efeb Addition of XIBObject base class for handling objects parsed out of the XIB file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37799 72102866-910b-0410-8b05-ffd578937521
2014-04-16 21:29:08 +00:00
Gregory John Casamento
22d1969783 Parse XML into tree for processing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37785 72102866-910b-0410-8b05-ffd578937521
2014-04-03 04:58:59 +00:00
Fred Kiefer
7c8eda0462 2013-04-02 Frank Le Grand <frank.legrand@testplant.com>
* Source/NSToolbarItem.m: Fixed a bug where calling setImage:
          on a toolbar item would draw the image even if the toolbar
          display mode would be set to NSToolbarDisplayModeLabelOnly
        * Source/GSToolbarCustomizationPalette.m: Turn NSLog into
          NSDebugLLog.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37782 72102866-910b-0410-8b05-ffd578937521
2014-04-02 20:55:19 +00:00
Gregory John Casamento
69244e2d98 Add object container.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37762 72102866-910b-0410-8b05-ffd578937521
2014-03-25 08:07:54 +00:00
Gregory John Casamento
3931ffd3eb Initial code for XIB 5 support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37761 72102866-910b-0410-8b05-ffd578937521
2014-03-25 07:59:36 +00:00
Fred Kiefer
51c43eae39 * Headers/AppKit/NSTextAttachment.h
* Source/NSTextAttachment.m: Use NSUInteger and bring closer to
        the Apple implementation.
        * Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:):
        For attachments use the cell origin y flipped.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37704 72102866-910b-0410-8b05-ffd578937521
2014-02-23 21:07:20 +00:00
Gregory John Casamento
0b26fec21a Fix for issue with resize when using in-window menus.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37698 72102866-910b-0410-8b05-ffd578937521
2014-02-20 23:49:37 +00:00
Fred Kiefer
cbc00992bf * Source/NSTextView.m (-insertText:): Ignore nil argument.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37694 72102866-910b-0410-8b05-ffd578937521
2014-02-18 20:38:31 +00:00
Fred Kiefer
c79bd60b8f * Source/NSWindowController.m (-setWindow:): Clear the window
delegate if set by NIB loading.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37681 72102866-910b-0410-8b05-ffd578937521
2014-02-05 22:55:53 +00:00
Fred Kiefer
3116c1c398 * Headers/AppKit/AppKit.h: Add a few missing classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37660 72102866-910b-0410-8b05-ffd578937521
2014-01-31 22:16:06 +00:00
Fred Kiefer
5a9e90f74f * Headers/AppKit/NSAlert.h,
* Headers/AppKit/NSWindow.h: Remove usage of GNUSTEP define.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37659 72102866-910b-0410-8b05-ffd578937521
2014-01-31 21:47:34 +00:00
Fred Kiefer
37e94abc97 * Headers/AppKit/NSCell.h
* Source/NSCell.m: Add hitTestForEvent:inRect:ofView:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37639 72102866-910b-0410-8b05-ffd578937521
2014-01-26 22:34:56 +00:00
Fred Kiefer
db2cf18bfe * Source/GSThemeDrawing.m (-drawTableViewRow:clipRect:inView:):
Don't change the value of an edited cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37638 72102866-910b-0410-8b05-ffd578937521
2014-01-26 22:01:07 +00:00
Sebastian Reitenbach
74e1e2b088 * Source/NSFontPanel.m
* Some int -> NSInteger and float -> CGFloat transitions

OK Fred



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37635 72102866-910b-0410-8b05-ffd578937521
2014-01-26 12:01:38 +00:00
Wolfgang Lux
1549ee2fa9 Pass nil argument to selector called by NSTextView -doCommandBySelector:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37633 72102866-910b-0410-8b05-ffd578937521
2014-01-24 09:07:31 +00:00
Fred Kiefer
72f44c1ded * Source/NSDocument.m: Add some NSError return values.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37619 72102866-910b-0410-8b05-ffd578937521
2014-01-19 21:30:23 +00:00
Fred Kiefer
26c365c9f0 * Source/NSTextAttachment.m: Add keyed coding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37580 72102866-910b-0410-8b05-ffd578937521
2014-01-12 14:55:03 +00:00
Fred Kiefer
ad6f23c0ee * Source/NSAttributedString.m (-fixFontAttributeInRange:): Don't
look for substitutions for control or attachment characters.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37575 72102866-910b-0410-8b05-ffd578937521
2014-01-11 18:09:54 +00:00
Fred Kiefer
e15355d1e0 * Source/NSSavePanel.m (-runModal): Use only last component from
filename.
* Source/NSSavePanel.m (-filename): Return autoreleased copy of
  instance variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37570 72102866-910b-0410-8b05-ffd578937521
2014-01-10 16:58:18 +00:00
Niels Grewe
0725950577 Roll back addition of redundant method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37539 72102866-910b-0410-8b05-ffd578937521
2014-01-05 23:03:35 +00:00
Niels Grewe
ae97581586 Add a method to GSDisplayServer that allows you to obtain the
identifier used by the backend's windowing system instead of
just the GNUstep-internal window number. On X11, the identifier
is useful, among other things, to implement the D-Bus menu 
protocol.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37533 72102866-910b-0410-8b05-ffd578937521
2014-01-01 19:45:26 +00:00
Fred Kiefer
4c0f9fbc97 * Headers/AppKit/NSAnimation.h
* Headers/AppKit/NSApplication.h
        * Headers/AppKit/NSControl.h
        * Headers/AppKit/NSPopover.h
        * Headers/AppKit/NSSavePanel.h
        * Headers/AppKit/NSTableView.h
        * Headers/AppKit/NSTextView.h
        * Headers/AppKit/NSWindow.h: Use GS_PROTOCOLS_HAVE_OPTIONAL to
        protect the @optional keyword in protocol definitions.
        Based on base patch by Marcus Mueller <znek@mulle-kybernetik.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37530 72102866-910b-0410-8b05-ffd578937521
2013-12-31 18:30:46 +00:00
Fred Kiefer
dc50232e07 * Source/NSImage.m: Add description method.
Patch by Johannes Lundberg <johannes@brilliantservice.co.jp>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37518 72102866-910b-0410-8b05-ffd578937521
2013-12-26 12:34:57 +00:00
Richard Frith-MacDonald
7de56fb882 Update version and release notes etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37505 72102866-910b-0410-8b05-ffd578937521
2013-12-24 06:50:34 +00:00
Fred Kiefer
ef35c71bfc * Update release notes to prepare for upcoming release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37492 72102866-910b-0410-8b05-ffd578937521
2013-12-23 16:57:18 +00:00
Fred Kiefer
52d1488ad6 * Source/GSXibLoader.m: Handle changed keys for XIB 4.6 format.
Based on patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>.
* Source/GSXibLoader.m (-parser:...): Warn about unsupported XIB 5 format.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37463 72102866-910b-0410-8b05-ffd578937521
2013-12-13 20:34:52 +00:00
Fred Kiefer
9600bd7614 * Source/NSTableView.m (-numberOfRows): Return the current number
of rows not the internal cached value.
  Replace some occurences of int with NSInteger
  and unsigned with NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37461 72102866-910b-0410-8b05-ffd578937521
2013-12-13 15:08:32 +00:00
Fred Kiefer
1b478fabbf * Source/NSClipView.m (-setBounds:, -setBoundsSize:): Use
-setNeedsDisplay: to redraw areas no longer covered by the
        document view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37441 72102866-910b-0410-8b05-ffd578937521
2013-12-08 14:16:17 +00:00
Fred Kiefer
73b1e01475 * Source/NSClipView.m (-setDocumentView:): Don't take the
background colour from the document view.
  Patch by Jeff Teunissen <deek@d2dc.net>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37440 72102866-910b-0410-8b05-ffd578937521
2013-12-07 20:55:26 +00:00
Fred Kiefer
004c87b9a5 * Source/GSThemeDrawing.m (-drawScrollViewRect:inView:): Use the
scrollview bounds instead of the scroller frame for drawing the
  border.
  Patch by Jeff Teunissen <deek@d2dc.net>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37438 72102866-910b-0410-8b05-ffd578937521
2013-12-07 20:40:47 +00:00
Fred Kiefer
db8253b2d1 * Source/NSBitmapImageRep+JPEG.m: Remove CYGWIN specific define
as it is no longer needed. I leave the code for this in for a
  while.
  Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37435 72102866-910b-0410-8b05-ffd578937521
2013-12-06 17:45:37 +00:00
Fred Kiefer
4a61340345 * Source/NSClipView.m (-setBounds:, -setBoundsSize:): Mark the
documentView as needing redisplay. Fixes #40776.
        Based on patch by Jeff Teunissen <deek@d2dc.net>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37429 72102866-910b-0410-8b05-ffd578937521
2013-12-03 22:18:04 +00:00
Fred Kiefer
ab576bf677 * Source/GSThemeDrawing.m (-drawScrollViewRect:inView:): Use
NSRectFill() instead of line drawing to get sharper separator
        lines.
        * Source/GSThemeDrawing.m (-drawScrollerRect:...): Don't fill
        with window background colour.
        * Source/NSScroller.m (-drawRect:): Draw only the knob slot when
        disabled.
        * Source/NSScroller.m (-mouseDown:): Don't handle mouse down
        event when disabled.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37428 72102866-910b-0410-8b05-ffd578937521
2013-12-03 21:37:41 +00:00
Fred Kiefer
b0bf0e98c6 * Source/NSScroller.m (-drawKnobSlot): Draw the slot even when
the scroller is disabled.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37427 72102866-910b-0410-8b05-ffd578937521
2013-12-02 18:59:04 +00:00
Fred Kiefer
313f18786a * Source/Functions.m (NSFrameRectWithWidth): Use one pixel width
if a value of 0 is given. Fixes bug #40760
        * Source/NSScroller.m: Move disable check out of -rectForPart:.
        Fixes bug #40761.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37425 72102866-910b-0410-8b05-ffd578937521
2013-12-01 20:58:06 +00:00
Fred Kiefer
3ad5c33813 * Headers/Additions/GNUstepGUI/GSModelLoaderFactory.h,
* Source/GSModelLoaderFactory.m: Add new method +supportedTypes.
* Source/NSBundleAdditions.m: Use this new method to implement
  NIB resource detection on top of the base methods instead of doing
  it here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37421 72102866-910b-0410-8b05-ffd578937521
2013-12-01 12:26:12 +00:00
Fred Kiefer
46d7887140 * Source/NSGradient.m: Rearrange code to avoid duplicate
saveGraphicsState calls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37407 72102866-910b-0410-8b05-ffd578937521
2013-11-24 20:25:23 +00:00
Fred Kiefer
887f3090cc * Source/NSBitmapImageRep+GIF.m: Add define missing in libgif 5.0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37405 72102866-910b-0410-8b05-ffd578937521
2013-11-24 11:56:33 +00:00
Fred Kiefer
07f47bb507 * Source/NSBrowser.m (-selectionIndexPaths): Actually do the correction.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37404 72102866-910b-0410-8b05-ffd578937521
2013-11-24 11:08:02 +00:00
Fred Kiefer
af132da570 * Source/NSBrowser.m (-selectionIndexPaths): Correct off by one
error in last change.
  Detected by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37403 72102866-910b-0410-8b05-ffd578937521
2013-11-23 17:04:56 +00:00
Fred Kiefer
57bb4c08cd * configure.ac: Detect new GifQuantizeBuffer function.
* configure: regenerate
        * Source/NSBitmapImageRep+GIF.m: Try to handle quantize again
          for libgif 5.0.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37400 72102866-910b-0410-8b05-ffd578937521
2013-11-22 23:02:17 +00:00
Fred Kiefer
dddd3f5e3b * configure.ac: Try to improve the ICU detection.
* configure: regenerate
        * Headers/AppKit/NSTrackingArea.h
        * Source/NSTrackingArea.m: Remove compiler warnings.
        * Headers/AppKit/NSBrowser.h,
        * Source/NSBrowser.m: Add a few new Cocoa methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37399 72102866-910b-0410-8b05-ffd578937521
2013-11-22 22:44:37 +00:00
Germán Arias
26a36530a1 Set _lastPoint only for mouse entered events.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37398 72102866-910b-0410-8b05-ffd578937521
2013-11-22 19:21:02 +00:00
Riccardo Mottola
6c7e20737f Adapt for newer libgif versions of EGifOpen and renamed GifMakeMapObject.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37369 72102866-910b-0410-8b05-ffd578937521
2013-11-08 09:01:50 +00:00
Eric Wasylishen
0bd1257321 * Source/GSThemeDrawing.m (-highlightTableViewSelectionInClipRect:...):
Use color named @"highlightedTableRowBackgroundColor", if present in
the theme, to fill the selected row background.
* Source/GSThemeDrawing.m (-drawTableViewRow:clipRect:inView:):
When the row/column is selected, if the cell is a NSTextFieldCell,
set the text color to @"highlightedTableRowTextColor" before drawing the
cell (only if the theme defines that color).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37363 72102866-910b-0410-8b05-ffd578937521
2013-11-05 21:34:52 +00:00
Sebastian Reitenbach
2c78f52487 * Source/NSSpellChecker.m
int -> NSInteger transition

OK Fred



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37355 72102866-910b-0410-8b05-ffd578937521
2013-11-03 16:04:06 +00:00
Fred Kiefer
072ade9e21 * Source/GSServicesManager.m: Call the more modern
NSDocumentController methods to open documents.
        * Resources/English.lproj/Localizable.strings
        * Resources/Esperanto.lproj/Localizable.strings
        * Resources/French.lproj/Localizable.strings
        * Resources/German.lproj/Localizable.strings
        * Resources/Italian.lproj/Localizable.strings
        * Resources/Lojban.lproj/Localizable.strings
        * Resources/Spanish.lproj/Localizable.strings
        Regenerate string files.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37350 72102866-910b-0410-8b05-ffd578937521
2013-11-01 20:34:29 +00:00
Fred Kiefer
9b69de19d4 * Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:):
Only adjust max_line_height to minimumLineHeight if it isn't zero.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37296 72102866-910b-0410-8b05-ffd578937521
2013-10-27 20:02:41 +00:00
Riccardo Mottola
d472adfbb1 * Source/NSTextView.m (-mouseDown:): Use container origin for attachment cells.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37283 72102866-910b-0410-8b05-ffd578937521
2013-10-26 15:50:02 +00:00
Fred Kiefer
56803c6c14 * Source/NSMenuView.m (-heightForItem:): Use
-menuItemCellForItemAtIndex: to protect against an index being to
  big. This happens when the menu does not send notifications and a
  non-existing item gets highlighted.
* Source/NSMenuView.m (-menuItemCellForItemAtIndex:): Protect
  against negative index values.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37279 72102866-910b-0410-8b05-ffd578937521
2013-10-25 22:34:18 +00:00
Fred Kiefer
35b547f964 * Source/NSBitmapImageRep+PNG.m: Better cleanup on error.
* Source/NSBitmapImageRep.m (_set_bit_value): Correct error in
bit operation. This should allow the code to work with 16 bit images.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37267 72102866-910b-0410-8b05-ffd578937521
2013-10-20 20:41:52 +00:00
Eric Wasylishen
5c7627d474 * Images/common_SliderHoriz.tiff:
* Images/common_SliderVert.tiff: Bake in the control background
color because the NSSliderCell now draws these without filling
with [NSColor controlBackgroundColor] first.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37250 72102866-910b-0410-8b05-ffd578937521
2013-10-18 02:42:50 +00:00
Fred Kiefer
2c7ebd84a2 Add some OSX 10.6 methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37247 72102866-910b-0410-8b05-ffd578937521
2013-10-17 21:05:15 +00:00
Eric Wasylishen
d9da770d5b * Source/GSThemeDrawing.m:
* Source/GSThemeTools.m:
	* Headers/Additions/GNUstepGUI/GSTheme.h: Small refactor:
	most uses of -[GSTheme fillRect:withTiles:background:] use
	[NSColor clearColor], so add a version without the background:
	param.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37244 72102866-910b-0410-8b05-ffd578937521
2013-10-16 07:19:45 +00:00
Eric Wasylishen
326a3d57f4 * Source/GSThemeDrawing.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Add methods
	-menuSubmenuHorizontalOverlap and -menuSubmenuVerticalOverlap
	wrapping user defaults GSMenuSubmenuHorizontalOverlap and
	GSMenuSubmenuVerticalOverlap
	* Source/NSMenuView.m (-locationForSubmenu:): Offset calculations
	by -[GSTheme menuSubmenuHorizontalOverlap] and
	-[GSTheme menuSubmenuVerticalOverlap]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37243 72102866-910b-0410-8b05-ffd578937521
2013-10-16 07:08:15 +00:00
Eric Wasylishen
64432f901d * Source/GSThemePrivate.h:
* Source/GSTheme.m: Add GSStringFromImageFrameStyle
	* Source/GSThemeDrawing.m (-drawBorderForImageFrameStyle:...):
	Use GSStringFromImageFrameStyle to get tiles, if presentwq


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37242 72102866-910b-0410-8b05-ffd578937521
2013-10-16 05:14:32 +00:00
Eric Wasylishen
c05595c8be * Source/GSThemeDrawing.m (-drawColorWellBorder:...): Draw inner
border using part GSColorWellInnerBorder
	* Source/GSTheme.m:
	* Headers/Additions/GNUstepGUI/GSTheme.h: Add GSColorWellInnerBorder
	part name


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37240 72102866-910b-0410-8b05-ffd578937521
2013-10-16 04:11:41 +00:00