Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-12-17 00:20:56 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-12-17 00:20:56 (GMT)
commite5e316acde61ce2bbf3e4af6b3843ce898d4cb47 (patch)
treea1754bf03b80e38be0b6f63b25ca5c63e07d31e3
parent752c3b9716a3a4a17d799e16c8f5c22bf76cebf4 (diff)
reapply ignacio's copy/paste patch
-rw-r--r--pippy_app.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pippy_app.py b/pippy_app.py
index 759814b..97829f0 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -450,11 +450,13 @@ file. 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