I don't get it. I see Pharo 9.06.1 which is based on 10234 and this is the implementation:
swapMouseButtons
^ self
valueOfFlag: #swapMouseButtons
ifAbsent: [false]
But, you said you change to
In issue #838 I changed the implementation to be platform specific as
follows:
� � � � � � � � � � � �OSPlatform current platformFamily ~= #Windows ]
swapMouseButtons
� � � �^ self
� � � � � � � �valueOfFlag: #swapMouseButtons
� � � � � � � �ifAbsent: [
which means that for Unix swapping is enabled (returns true).
If I understand you correctly, however, for Unix it should be
disabled. Is this correct?
So the correct implementation would be to test for
OSPlatform current platformFamily = #Mac (or similar)
Adrian
> _______________________________________________
On Jun 7, 2009, at 19:08 , Mariano Martinez Peck wrote:
> Hi folks: I had an Pharo 10318 and then updat to 10328 in Linux and
> swapMouseButtons seems to be wrong. For the "right button" I have to
> press
> the mouse wheel button. I tried this things:
>
> Preferences setPreference: #swapMouseButtons toValue: true.
> Preferences setPreference: #swapMouseButtons toValue: false.
> Preferences enable: #swapMouseButtons.
> Preferences disable: #swapMouseButtons.
> InputSensor swapMouseButtons: false.
> InputSensor swapMouseButtons: true.
>
> No one do nothing.
>
> I saw http://code.google.com/p/pharo/issues/detail?id=838 �and seems
> to be
> changed in 10319
>
> However, this is not working well in Linux. What I had to do to make
> it work
> is this:
>
> Rewrite Preferences>>swapMouseButtons to this:
>
> swapMouseButtons
> � �^ self
> � � � �valueOfFlag: #swapMouseButtons
> � � � �ifAbsent: [self break.
> � � � � � �OSPlatform current platformFamily = #Windows
> � � � � � � � �ifTrue: [false].
> � � � � � �OSPlatform current platformFamily = #Unix
> � � � � � � � �ifTrue: [false] ]
>
>
> And then do:
>
> InputEventSensor swapMouseButtons: false
>
> In addition 10324 dev seems to work ok for me out of the box. Can be a
> problem of updating from an older version ?
>
> What can be the problem?
>
> Thanks
>
> Mariano
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project