Skip to content

Commit

Permalink
#2172: don't use clipboard.set_with_data on win32
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21867 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 25, 2019
1 parent 91c2136 commit 02b913f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xpra/gtk_common/gtk_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02b913f

Please sign in to comment.