Revision: 2321
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2321&view=rev
Author:   hofman
Date:     2007-06-16 16:34:48 -0700 (Sat, 16 Jun 2007)

Log Message:
-----------
Revert previous commit. The side windows should be able to be above the 
snapshot windows. Instead hide them when the app deactivates.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-06-16 23:16:58 UTC (rev 2320)
+++ trunk/SKMainWindowController.m      2007-06-16 23:34:48 UTC (rev 2321)
@@ -1487,18 +1487,14 @@
     [rightSideWindow hideSideWindow];
     
     [leftSideWindow orderFront:self];
-    [[self window] addChildWindow:leftSideWindow ordered:NSWindowAbove];
     [rightSideWindow orderFront:self];
-    [[self window] addChildWindow:rightSideWindow ordered:NSWindowAbove];
     
     [pdfView setFrame:NSInsetRect([[pdfView superview] bounds], 9.0, 0.0)];
     [[pdfView superview] setNeedsDisplay:YES];
 }
 
 - (void)hideSideWindows {
-    [[self window] removeChildWindow:leftSideWindow];
     [leftSideWindow orderOut:self];
-    [[self window] removeChildWindow:rightSideWindow];
     [rightSideWindow orderOut:self];
     
     if ([[leftSideWindow firstResponder] isDescendantOf:leftSideBox])

Modified: trunk/SKSideWindow.m
===================================================================
--- trunk/SKSideWindow.m        2007-06-16 23:16:58 UTC (rev 2320)
+++ trunk/SKSideWindow.m        2007-06-16 23:34:48 UTC (rev 2321)
@@ -70,6 +70,8 @@
                [self setHasShadow:YES];
         [self setDisplaysWhenScreenProfileChanges:YES];
         [self setReleasedWhenClosed:NO];
+        [self setHidesOnDeactivate:YES];
+        [self setWindowLevel:NSFloatingWindowLevel];
         [self moveToScreen:screen];
     }
     return self;


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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to