Commit graph

4125 commits

Author SHA1 Message Date
Gregory John Casamento
4c02515e9e * Source/NSScrollView.m: Remove FIXME comment and provided an
explaination for why a cast wasn't used.   Added nonDynamic flag
	as well as other flags from the nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28077 72102866-910b-0410-8b05-ffd578937521
2009-03-15 19:19:55 +00:00
Fred Kiefer
8a9282efc1 Use setTitle: instead of setStringValue: for theme button.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28076 72102866-910b-0410-8b05-ffd578937521
2009-03-15 17:40:08 +00:00
Gregory John Casamento
0548fc3f19 * Source/GSToolbarView.m:
* Source/NSToolbar.m: Partial fix for toolbar drag and drop issues.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28072 72102866-910b-0410-8b05-ffd578937521
2009-03-13 05:03:50 +00:00
Gregory John Casamento
83e65b773e * Source/NSPrintOperation.m: Correct issues with handling of
rectangle passed back from rectForPage: callback in NSView 
	subclasses.  This rect should override existing calculations 
	when it is passed in.
	* Source/NSView.m: Change to use NSPrintPaperBounds if and only if
	aRect is passed in as a blank rect.  Previously the code was
	using the NSPrintPaperBounds value and ignoring the passed in
	value.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28071 72102866-910b-0410-8b05-ffd578937521
2009-03-12 23:50:23 +00:00
Richard Frith-MacDonald
500c32c7be Fix for 64bit specific bug introduced by gc changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28069 72102866-910b-0410-8b05-ffd578937521
2009-03-12 17:40:55 +00:00
Fred Kiefer
10d22d2086 * Source/NSApplication.m (-setApplicationIconImage:): Copy the new
application image before assigning the name "NSApplicationIcon"
to it. This solves bug #25793.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28064 72102866-910b-0410-8b05-ffd578937521
2009-03-11 09:46:59 +00:00
Xavier Glattard
74bcdbdd94 Some improvements and bux fix related to OpenGL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28032 72102866-910b-0410-8b05-ffd578937521
2009-03-03 20:12:43 +00:00
Fred Kiefer
7c2e8efcd8 Replace nil with [NSDate distantFuture] in calls to nextEventMatchingMask:...dequeue:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28025 72102866-910b-0410-8b05-ffd578937521
2009-03-02 16:26:23 +00:00
Gregory John Casamento
cfea3dbe6b * Source/NSApplication.m: Fix bug #24643. Application icon is no
stored correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28021 72102866-910b-0410-8b05-ffd578937521
2009-03-02 01:10:23 +00:00
Fred Kiefer
623b0e6f85 And again some more missing localization includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28017 72102866-910b-0410-8b05-ffd578937521
2009-03-01 19:13:19 +00:00
Fred Kiefer
346c843533 One more missing localization include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28016 72102866-910b-0410-8b05-ffd578937521
2009-03-01 19:07:20 +00:00
Fred Kiefer
1b9732d96d Add more missing localization includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28015 72102866-910b-0410-8b05-ffd578937521
2009-03-01 19:04:58 +00:00
Fred Kiefer
08dc55de96 Improve localization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28014 72102866-910b-0410-8b05-ffd578937521
2009-03-01 17:42:46 +00:00
Gregory John Casamento
26e2eb86ea * Source/GSLayoutManager.m: do not return (0,0) when a zero length
range is passed into glyphRangeForCharacterRange:
	actualCharacterRange:.  Tests on Mac OS X indicate that this is
	a valid case.
	* Source/GSNibLoading.m: Fixed some memory leaks.
	* Source/NSRulerMarker.m: Use the bounds of the containing view 
	instead of markersRect.   I will revisit if the _markersRect method
	needs to be corrected, but this code seems to correct problems 
	observed when dragging markers in and out of the rulerView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27986 72102866-910b-0410-8b05-ffd578937521
2009-02-26 05:42:09 +00:00
Fred Kiefer
2229c7fc91 Optimize last change on NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27964 72102866-910b-0410-8b05-ffd578937521
2009-02-23 21:10:20 +00:00
Fred Kiefer
ee49afcb9b Changed all title methods on NSButtonCell to use the
super string value methods and redefine the local string value
methods to work with the object value. 
Patch by Matt Rice <ratmice@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27946 72102866-910b-0410-8b05-ffd578937521
2009-02-21 23:15:22 +00:00
Gregory John Casamento
cf427c2451 Correction for toolbar customization palette not showing when standard elements are included.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27929 72102866-910b-0410-8b05-ffd578937521
2009-02-20 17:22:22 +00:00
Richard Frith-MacDonald
9d6e4d8b8b Minor cleanup of update of services menu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27914 72102866-910b-0410-8b05-ffd578937521
2009-02-18 09:40:55 +00:00
Fred Kiefer
a2c687684d Use method call to set selected cell in Matrix NIB decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27913 72102866-910b-0410-8b05-ffd578937521
2009-02-18 09:25:03 +00:00
Fred Kiefer
4fae138790 Protect against the app icon being nil. Should fix #25620.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27912 72102866-910b-0410-8b05-ffd578937521
2009-02-18 08:57:22 +00:00
Gregory John Casamento
e6719574e3 * Source/GSNibLoading.m: Rollback of previous change. Found a
minor problem.
	* Source/NSDrawer.m: Improvements to NSDrawer handling.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27911 72102866-910b-0410-8b05-ffd578937521
2009-02-18 07:38:02 +00:00
Gregory John Casamento
32c4192f32 * Source/GSNibLoading.m: use the new code committed to NSMenu to
lay out the menu when vertical.  Get rid of the duplicate code here.
	* Source/NSDrawer.m: set the child window position when opening.
	* Source/NSMatrix.m: -_selectCell:atRow:column: Check to make 
	sure the selectedRow and selectedColumn are > -1.  This check is 
	done elsewhere and was not done here.  This was causing a crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27907 72102866-910b-0410-8b05-ffd578937521
2009-02-18 04:04:13 +00:00
Fred Kiefer
2886fd56a6 Make image view non editable by default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27906 72102866-910b-0410-8b05-ffd578937521
2009-02-17 19:14:41 +00:00
Fred Kiefer
cf37b181a7 Try to better handle Apple menu conversion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27905 72102866-910b-0410-8b05-ffd578937521
2009-02-17 18:24:44 +00:00
Fred Kiefer
e92f8bf718 Correct NSRulerView version to be an integer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27897 72102866-910b-0410-8b05-ffd578937521
2009-02-17 07:44:03 +00:00
Adam Fedor
65c1408219 Look for location of png.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27894 72102866-910b-0410-8b05-ffd578937521
2009-02-16 23:23:41 +00:00
Riccardo Mottola
502af4d5d1 removed debug log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27891 72102866-910b-0410-8b05-ffd578937521
2009-02-16 22:14:53 +00:00
Riccardo Mottola
f7403db91c try to fix bugss in last change, Optimize in case of common string and check for nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27889 72102866-910b-0410-8b05-ffd578937521
2009-02-16 21:40:26 +00:00
Fred Kiefer
67d368832d Try to fix bug in last change on NSCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27887 72102866-910b-0410-8b05-ffd578937521
2009-02-16 17:06:22 +00:00
Gregory John Casamento
c7059252b3 * Source/NSOpenPanel.m: Corrects bug #25471. Only enable
the OK button when a file the application can open is selected.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27876 72102866-910b-0410-8b05-ffd578937521
2009-02-16 03:15:05 +00:00
Gregory John Casamento
1689d8a6de * Source/NSCell.m: Change to implement 10.3 and later behavior for
the method setStringValue: as documented in Apple's documentation
	for the method.  This behavior was observed on Cocoa under 
	Mac OS 10.5.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27874 72102866-910b-0410-8b05-ffd578937521
2009-02-16 00:31:23 +00:00
Riccardo Mottola
0fed43fa2c Return autoreleased copy of the directory string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27857 72102866-910b-0410-8b05-ffd578937521
2009-02-13 19:11:06 +00:00
Richard Frith-MacDonald
ec51f7feaf first attempt at implementing -openURL: for NSWorkspace
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27846 72102866-910b-0410-8b05-ffd578937521
2009-02-11 13:13:19 +00:00
Richard Frith-MacDonald
25dc9dc650 fix for bug #25553 reported by Lu Liyi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27842 72102866-910b-0410-8b05-ffd578937521
2009-02-11 08:32:50 +00:00
Gregory John Casamento
88b9902bc6 * Source/NSBundleAdditions.m:
-[NSNibOutletConnector establishConnection] report exceptions when
	establishing a connection, but don't fail to load.  


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27840 72102866-910b-0410-8b05-ffd578937521
2009-02-11 05:43:06 +00:00
Fred Kiefer
1be0d6ca24 Stripped down version of the toolbar customization
branch by Quentin Mathe <qmathe@club-internet.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27835 72102866-910b-0410-8b05-ffd578937521
2009-02-10 21:02:33 +00:00
Richard Frith-MacDonald
570b8a4963 Reorganize location of theme proxy code. Add some more comments too.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27831 72102866-910b-0410-8b05-ffd578937521
2009-02-10 14:32:08 +00:00
Gregory John Casamento
9ef46af7f5 * Source/NSToolbar.m: (-windowDidUpdate:): Automatically update
the toolbar on every window update.  This makes sure that
	no matter what window an event happens in the toolbar gets
	properly updated for ALL windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27827 72102866-910b-0410-8b05-ffd578937521
2009-02-10 01:21:07 +00:00
Wolfgang Lux
f980764a02 Make sure NSSavePanel and NSOpenPanel show the contents of their
initial directory regardless of the result of validation. This should
fix bug #25363.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27820 72102866-910b-0410-8b05-ffd578937521
2009-02-08 22:11:19 +00:00
Wolfgang Lux
c91d16c371 Retain cached path of make_services tool in NSWorkspace.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27817 72102866-910b-0410-8b05-ffd578937521
2009-02-08 21:22:36 +00:00
Richard Frith-MacDonald
c27362c255 add missing header line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27813 72102866-910b-0410-8b05-ffd578937521
2009-02-08 13:37:02 +00:00
Fred Kiefer
a14d56e838 Use KVC call setValue:forKey: to establish the outlet connection.
This will result in ivars being properly retained.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27812 72102866-910b-0410-8b05-ffd578937521
2009-02-08 12:54:21 +00:00
Richard Frith-MacDonald
fa0b8d995b Use proxies for named images so that changes to images are nstantly reflected
when you change themes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27810 72102866-910b-0410-8b05-ffd578937521
2009-02-08 11:02:57 +00:00
Gregory John Casamento
6bec341a72 * Source/NSApplication.m: Added code to handle exceptions in
-[NSApplication run].  Rudimentary implementation of default
	NSExceptionHandlerMask.

For more on this change, please see the thread on the gnustep-dev list entitled "Allowing Applications to continue after exception...".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27809 72102866-910b-0410-8b05-ffd578937521
2009-02-08 06:40:29 +00:00
Fred Kiefer
71f807b1c7 Add theme drawing for toolbar view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27806 72102866-910b-0410-8b05-ffd578937521
2009-02-07 21:58:12 +00:00
Richard Frith-MacDonald
2c9b33a1a9 limit size of theme icon
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27805 72102866-910b-0410-8b05-ffd578937521
2009-02-07 09:28:55 +00:00
Richard Frith-MacDonald
96d993adde Add checks of tile sizes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27803 72102866-910b-0410-8b05-ffd578937521
2009-02-07 08:59:39 +00:00
Richard Frith-MacDonald
01578fe688 Some image tiling improvments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27801 72102866-910b-0410-8b05-ffd578937521
2009-02-06 15:08:14 +00:00
Gregory John Casamento
d456de1826 * Source/NSWindow.m: Correct compilation error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27792 72102866-910b-0410-8b05-ffd578937521
2009-02-04 22:43:26 +00:00
Richard Frith-MacDonald
6312db17ff fixups for checiking application icon size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27778 72102866-910b-0410-8b05-ffd578937521
2009-02-04 11:16:05 +00:00