From 02b913f30fce78ed3b243a01ab27be176a37c620 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 25 Feb 2019 05:18:41 +0000 Subject: [PATCH] #2172: don't use clipboard.set_with_data on win32 git-svn-id: https://xpra.org/svn/Xpra/trunk@21867 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/gtk_common/gtk_util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xpra/gtk_common/gtk_util.py b/src/xpra/gtk_common/gtk_util.py index 9a811470c4..7bd1b8eba3 100644 --- a/src/xpra/gtk_common/gtk_util.py +++ b/src/xpra/gtk_common/gtk_util.py @@ -722,6 +722,10 @@ def load_contents_finish(gfile, res): def set_clipboard_data(clipboard, thevalue, vtype="STRING"): TEXT_TARGETS = ("UTF8_STRING", "TEXT", "STRING", "text/plain") + if WIN32: + if vtype in TEXT_TARGETS: + clipboard.set_text(thevalue, len(thevalue)) + return if OSX and vtype in TEXT_TARGETS: clipboard.set_text(thevalue, len(thevalue)) return