swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swarm-Support] mouse wheel and ZoonRaster


From: Jakson A. Aquino
Subject: [Swarm-Support] mouse wheel and ZoonRaster
Date: Fri, 31 Aug 2007 12:33:39 -0300

Hello!

An swarm application has its execution aborted when I move the mouse
wheel with the mouse pointer over the  ZoonRaster. The solution seems
to be the addition of two cases in a switch statement at
swarm-2.2.3/src/tkobjc/Raster.m, line :

     case 4:
     case 5:
           break;

I applied the patch below to the Debian package, but probably there is
no need of warning that the wheel movement will be ignored because the
user will see that nothing happens. I copied and pasted the warning
from a function that was some lines above, where the warning is really
necessary:

--- swarm-2.2.3.orig/src/tkobjc/Raster.m
+++ swarm-2.2.3/src/tkobjc/Raster.m
@@ -209,6 +209,11 @@
     case ButtonLeft: c = button1Client; sel = button1Sel; break;
     case ButtonMiddle: c = button2Client; sel = button2Sel; break;
     case ButtonRight: c = button3Client; sel = button3Sel; break;
+    case 4:
+    case 5:
+      raiseEvent (WarningMessage,
+                  "Don't know how to handle button %d, ignoring.\n", n);
+      break;
     default: raiseEvent(SourceMessage, "Button %d out of range.\n");
     }


Best Regards,

Jakson


reply via email to

[Prev in Thread] Current Thread [Next in Thread]