Commit c3778997 authored by Kai Willadsen's avatar Kai Willadsen

patchdialog: Fix copy-to-clipboard for pygobject port

parent 6f19a4d2
......@@ -17,6 +17,7 @@
import difflib
import os
from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import GtkSource
......@@ -113,8 +114,8 @@ class PatchDialog(gnomeglade.Component):
# Copy patch to clipboard
if result == 1:
clip = Gtk.clipboard_get()
clip.set_text(txt)
clip = Gtk.Clipboard.get_default(Gdk.Display.get_default())
clip.set_text(txt, -1)
clip.store()
break
# Save patch as a file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment