Revision: 2968
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2968&view=rev
Author:   hofman
Date:     2007-09-21 12:14:48 -0700 (Fri, 21 Sep 2007)

Log Message:
-----------
Don't change height of segmented control in drawers.

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-09-21 19:11:01 UTC (rev 2967)
+++ trunk/SKMainWindowController.m      2007-09-21 19:14:48 UTC (rev 2968)
@@ -256,6 +256,7 @@
 
 - (void)windowDidLoad{
     NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
+    NSRect frame;
     
     settingUpWindow = YES;
     
@@ -273,15 +274,17 @@
     [leftSideEdgeView setEdges:BDSKMinXEdgeMask | BDSKMaxXEdgeMask];
     [rightSideEdgeView setEdges:BDSKMinXEdgeMask | BDSKMaxXEdgeMask];
     
-    NSRect frame = [leftSideButton frame];
-    frame.size.height = SEGMENTED_CONTROL_HEIGHT;
-    [leftSideButton setFrame:frame];
+    if (usesDrawers == NO) {
+        frame = [leftSideButton frame];
+        frame.size.height = SEGMENTED_CONTROL_HEIGHT;
+        [leftSideButton setFrame:frame];
+        frame = [rightSideButton frame];
+        frame.size.height = SEGMENTED_CONTROL_HEIGHT;
+        [rightSideButton setFrame:frame];
+    }
+    
     [[leftSideButton cell] setToolTip:NSLocalizedString(@"View Thumbnails", 
@"Tool tip message") forSegment:SKThumbnailSidePaneState];
     [[leftSideButton cell] setToolTip:NSLocalizedString(@"View Table of 
Contents", @"Tool tip message") forSegment:SKOutlineSidePaneState];
-    
-    frame = [rightSideButton frame];
-    frame.size.height = SEGMENTED_CONTROL_HEIGHT;
-    [rightSideButton setFrame:frame];
     [[rightSideButton cell] setToolTip:NSLocalizedString(@"View Notes", @"Tool 
tip message") forSegment:SKNoteSidePaneState];
     [[rightSideButton cell] setToolTip:NSLocalizedString(@"View Snapshots", 
@"Tool tip message") forSegment:SKSnapshotSidePaneState];
     


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to