Clipboard Store Patch



Small patch to remove unnecessary clipboard operations on copy, as discussed
on IRC.
>From 2297560082e67aa282ea04615015e712a8ab4c7a Mon Sep 17 00:00:00 2001
From: David Schneider <dnschneid gmail com>
Date: Thu, 12 May 2011 21:55:31 -0700
Subject: [PATCH 1/3] Remove unnecessary explicit clipboard store.

---
 kupfer/interface.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kupfer/interface.py b/kupfer/interface.py
index 382e073..abcb183 100644
--- a/kupfer/interface.py
+++ b/kupfer/interface.py
@@ -74,8 +74,7 @@ def copy_to_clipboard(obj, clipboard):
 	if data:
 		clipboard.set_with_data(targets, store, clear, data)
 		# store all targets
-		clipboard.set_can_store(None)
-		clipboard.store()
+		clipboard.set_can_store(targets)
 		return True
 	return False
 
-- 
1.7.4.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]