Revision: 7291
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7291&view=rev
Author:   hofman
Date:     2011-06-19 09:56:46 +0000 (Sun, 19 Jun 2011)

Log Message:
-----------
redisplay when changing setting

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

Modified: trunk/SKGradientView.m
===================================================================
--- trunk/SKGradientView.m      2011-06-19 09:51:24 UTC (rev 7290)
+++ trunk/SKGradientView.m      2011-06-19 09:56:46 UTC (rev 7291)
@@ -183,7 +183,7 @@
 }
 
 // required in order for redisplay to work properly with the controls
-- (BOOL)isOpaque{  return [[self window] styleMask] != NSBorderlessWindowMask; 
}
+- (BOOL)isOpaque{ return autoTransparent && [[self window] styleMask] != 
NSBorderlessWindowMask; }
 
 - (void)setContentView:(NSView *)aView {
        if (aView != contentView) {
@@ -205,9 +205,12 @@
 }
 
 - (void)setAutoTransparent:(BOOL)flag {
-    autoTransparent = flag;
-    if (autoTransparent)
-        [self setEdges:[[self window] styleMask] != NSBorderlessWindowMask ? 
SKMinXEdgeMask | SKMaxXEdgeMask : SKNoEdgeMask];
+    if (flag != autoTransparent) {
+        autoTransparent = flag;
+        if (autoTransparent)
+            [self setEdges:[[self window] styleMask] != NSBorderlessWindowMask 
? SKMinXEdgeMask | SKMaxXEdgeMask : SKNoEdgeMask];
+        [self setNeedsDisplay:YES];
+    }
 }
 
 - (NSRect)contentRect {


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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to