[hamster-applet/gnome-2-26] doubleclick also copies activity description if such is available
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Subject: [hamster-applet/gnome-2-26] doubleclick also copies activity description if such is available
- Date: Mon, 18 May 2009 15:48:52 -0400 (EDT)
commit e7a687f3112e9a1073f1ddb2c5aa583d92dd9bb6
Author: Toms Bauģis <toms baugis gmail com>
Date: Mon May 18 20:46:30 2009 +0100
doubleclick also copies activity description if such is available
---
hamster/applet.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/hamster/applet.py b/hamster/applet.py
index f2bcab3..9ff2a73 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -638,6 +638,11 @@ class HamsterApplet(object):
(model, iter) = selection.get_selected()
activity_name = model[iter][1].decode('utf8', 'replace')
if activity_name:
+ description = model[iter][5]
+ if description:
+ description = description.decode('utf8', 'replace')
+ activity_name = "%s, %s" % (activity_name, description)
+
self.add_fact(activity_name)
def add_fact(self, activity_name):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]