]> git.saurik.com Git - wxWidgets.git/commitdiff
Disable putting selected text in the Primary Selection, since wxGTK is
authorRobin Dunn <robin@alldunn.com>
Fri, 3 Jan 2003 19:03:01 +0000 (19:03 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 3 Jan 2003 19:03:01 +0000 (19:03 +0000)
currenlty clearing the Clipboard when you do this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/stc/ScintillaWX.cpp
src/stc/ScintillaWX.cpp

index c9740849fd0ff978bfc9ae4823bfb83adf75a07a..b4127a7a5497558f35a2e8e93b4d40c2fcbb82b6 100644 (file)
@@ -405,6 +405,11 @@ void ScintillaWX::AddToPopUp(const char *label, int cmd, bool enabled) {
 
 // This is called by the Editor base class whenever something is selected
 void ScintillaWX::ClaimSelection() {
+#if 0
+    // Until wxGTK is able to support using both the primary selection and the
+    // clipboard at the same time I think it causes more problems than it is
+    // worth to implement this method.  Selecting text should not clear the
+    // clipboard.  --Robin
 #ifdef __WXGTK__
     // Put the selected text in the PRIMARY selection
     if (currentPos != anchor) {
@@ -419,6 +424,7 @@ void ScintillaWX::ClaimSelection() {
         }
     }
 #endif
+#endif
 }
 
 
index c9740849fd0ff978bfc9ae4823bfb83adf75a07a..b4127a7a5497558f35a2e8e93b4d40c2fcbb82b6 100644 (file)
@@ -405,6 +405,11 @@ void ScintillaWX::AddToPopUp(const char *label, int cmd, bool enabled) {
 
 // This is called by the Editor base class whenever something is selected
 void ScintillaWX::ClaimSelection() {
+#if 0
+    // Until wxGTK is able to support using both the primary selection and the
+    // clipboard at the same time I think it causes more problems than it is
+    // worth to implement this method.  Selecting text should not clear the
+    // clipboard.  --Robin
 #ifdef __WXGTK__
     // Put the selected text in the PRIMARY selection
     if (currentPos != anchor) {
@@ -419,6 +424,7 @@ void ScintillaWX::ClaimSelection() {
         }
     }
 #endif
+#endif
 }