Make paste button symbolic
authorJan Vrany <jan.vrany@fit.cvut.cz>
Tue, 17 Apr 2012 21:44:12 +0200
changeset 4421 06727bd6c8e8
parent 4420 8f0164295ef8
child 4422 9954fb1dc0a4
Make paste button symbolic
EditTextView.st
--- a/EditTextView.st	Tue Apr 17 21:04:34 2012 +0200
+++ b/EditTextView.st	Tue Apr 17 21:44:12 2012 +0200
@@ -4373,7 +4373,7 @@
     "On X11, be nice and paste PRIMARY when middle click. 
      Note, that middle button on X11 is translated to button
      128 in Smalltalk/X - see XWorkstation class>>initializeConstants"
-    (button == 128 and:[device platformName == #X11]) ifTrue:[
+    (button == #paste and:[device platformName == #X11]) ifTrue:[
         self undoableDo:[
             self paste: (self getClipboardText:#selection).
         ].
@@ -8055,9 +8055,9 @@
 !EditTextView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/EditTextView.st,v 1.527 2012-04-17 19:04:34 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/EditTextView.st,v 1.528 2012-04-17 19:44:12 vrany Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg/EditTextView.st,v 1.527 2012-04-17 19:04:34 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/EditTextView.st,v 1.528 2012-04-17 19:44:12 vrany Exp $'
 ! !