Revision: 5403
http://skim-app.svn.sourceforge.net/skim-app/?rev=5403&view=rev
Author: hofman
Date: 2009-06-07 16:26:08 +0000 (Sun, 07 Jun 2009)
Log Message:
-----------
Disable size mode in main toolbar as it has almost no effect
Modified Paths:
--------------
trunk/SKMainWindowController_Toolbar.m
Modified: trunk/SKMainWindowController_Toolbar.m
===================================================================
--- trunk/SKMainWindowController_Toolbar.m 2009-06-07 11:27:06 UTC (rev
5402)
+++ trunk/SKMainWindowController_Toolbar.m 2009-06-07 16:26:08 UTC (rev
5403)
@@ -88,6 +88,15 @@
#define SKDocumentToolbarCustomizeItemIdentifier
@"SKDocumentToolbarCustomizeItemIdentifier"
+...@interface SKToolbar : NSToolbar
+...@end
+
+...@implementation SKToolbar
+- (BOOL)_allowsSizeMode:(NSToolbarSizeMode)sizeMode { return NO; }
+...@end
+
+#pargma mark -
+
@interface SKMainWindowController (TSKoolbarPrivate)
- (void)handleColorSwatchColorsChangedNotification:(NSNotification
*)notification;
@end
@@ -97,7 +106,7 @@
- (void)setupToolbar {
// Create a new toolbar instance, and attach it to our document window
- NSToolbar *toolbar = [[[NSToolbar alloc]
initWithIdentifier:SKDocumentToolbarIdentifier] autorelease];
+ NSToolbar *toolbar = [[[SKToolbar alloc]
initWithIdentifier:SKDocumentToolbarIdentifier] autorelease];
// Set up toolbar properties: Allow customization, give a default display
mode, and remember state in user defaults
[toolbar setAllowsUserCustomization:YES];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit