Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pippy_app.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pippy_app.py b/pippy_app.py
index 6a76e0d..f534bde 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -418,11 +418,13 @@ Discard changes?')
def __copybutton_cb(self, button):
global text_buffer
- text_buffer.copy_clipboard(Gtk.Clipboard())
+ clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
+ text_buffer.copy_clipboard(clipboard)
def __pastebutton_cb(self, button):
global text_buffer
- text_buffer.paste_clipboard(Gtk.Clipboard(), None, True)
+ clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
+ text_buffer.paste_clipboard(clipboard, None, True)
def gobutton_cb(self, button):
from shutil import copy2