[kupfer] Allow Ctrl+C by making the email the EmailContacts' text representation



commit f581a3dfc631bc753fcb0fbbd51f0edb60a3b415
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Mar 4 22:44:14 2010 +0100

    Allow Ctrl+C by making the email the EmailContacts' text representation

 kupfer/obj/contacts.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/obj/contacts.py b/kupfer/obj/contacts.py
index e5341d4..31c4a42 100644
--- a/kupfer/obj/contacts.py
+++ b/kupfer/obj/contacts.py
@@ -67,6 +67,9 @@ class EmailContact (ContactLeaf):
 	def get_description(self):
 		return self.object[EMAIL_KEY]
 
+	def get_text_representation(self):
+		return self.object[EMAIL_KEY]
+
 	def get_gicon(self):
 		return icons.ComposedIconSmall(self.get_icon_name(),"stock_mail")
 



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