Revision: 3709
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3709&view=rev
Author:   hofman
Date:     2008-04-11 05:26:19 -0700 (Fri, 11 Apr 2008)

Log Message:
-----------
Return generic dragop for colors and lines, consistent with color wells and 
color panel. Check for every dragop when deleting, as this should not be 
interpreted as a delete.

Modified Paths:
--------------
    trunk/SKColorSwatch.m
    trunk/SKPDFView.m

Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m       2008-04-11 12:03:44 UTC (rev 3708)
+++ trunk/SKColorSwatch.m       2008-04-11 12:26:19 UTC (rev 3709)
@@ -422,7 +422,7 @@
 }
 
 - (void)draggedImage:(NSImage *)image endedAt:(NSPoint)screenPoint 
operation:(NSDragOperation)operation {
-    if (operation == NSDragOperationDelete) {
+    if ((operation & NSDragOperationDelete) != 0 && operation != 
NSDragOperationEvery) {
         if (draggedIndex != -1 && [self isEnabled]) {
             [self willChangeValueForKey:SKColorSwatchColorsKey];
             [colors removeObjectAtIndex:draggedIndex];

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-04-11 12:03:44 UTC (rev 3708)
+++ trunk/SKPDFView.m   2008-04-11 12:26:19 UTC (rev 3709)
@@ -1548,7 +1548,7 @@
                         highlightAnnotation = annotation;
                         [self 
setNeedsDisplayForAnnotation:highlightAnnotation];
                     }
-                    dragOp = NSDragOperationEvery;
+                    dragOp = NSDragOperationGeneric;
                     break;
                 }
             }


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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to