Hi,

your issue is quite specific, VMWare and stuff... but it may be 
related to another bug that is present: On Linux, you can't paste
copied text after closing SciTE.

I attached a patch. For this to work in SciTE, the gtk loop has 
to be exited properly, so we also need the patch I sent about 
the exit functions. Neil, I think you can commit it now, the 
director modifications will come later, and cleaning up the 
pipes should probably go into DirectorExtension::Finalise() 
anyway.

I can't guarantee that this patch fixes your issues with VMWare, 
but it fixes the other bug described.

Nicolas
Index: gtk/ScintillaGTK.cxx
===================================================================
RCS file: /cvsroot/scintilla/scintilla/gtk/ScintillaGTK.cxx,v
retrieving revision 1.178
diff -a -u -r1.178 ScintillaGTK.cxx
--- gtk/ScintillaGTK.cxx        12 Jun 2007 03:55:11 -0000      1.178
+++ gtk/ScintillaGTK.cxx        30 Jun 2007 08:29:29 -0000
@@ -1299,8 +1299,10 @@
        SelectionText *clipText = new SelectionText();
        clipText->Copy(selectedText);
 
-       gtk_clipboard_set_with_data(clipBoard, clipboardCopyTargets, 
nClipboardCopyTargets,
-                                   ClipboardGetSelection, 
ClipboardClearSelection, clipText);
+               if (gtk_clipboard_set_with_data(clipBoard, 
clipboardCopyTargets, nClipboardCopyTargets,
+                                           ClipboardGetSelection, 
ClipboardClearSelection, clipText)) {
+                       gtk_clipboard_set_can_store(clipBoard, 
clipboardCopyTargets, nClipboardCopyTargets);
+               }
 
 #endif
 }
@@ -1321,8 +1323,11 @@
                SelectionText *clipText = new SelectionText();
                CopySelectionRange(clipText);
 
-               gtk_clipboard_set_with_data(clipBoard, clipboardCopyTargets, 
nClipboardCopyTargets,
-                                           ClipboardGetSelection, 
ClipboardClearSelection, clipText);
+               if (gtk_clipboard_set_with_data(clipBoard, 
clipboardCopyTargets, nClipboardCopyTargets,
+                                           ClipboardGetSelection, 
ClipboardClearSelection, clipText)) {
+                       gtk_clipboard_set_can_store(clipBoard, 
clipboardCopyTargets, nClipboardCopyTargets);
+               }
+
 
 #endif
 #if PLAT_GTK_WIN32
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to