[hamster-applet] utf-8 decoding clipboard contents
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Subject: [hamster-applet] utf-8 decoding clipboard contents
- Date: Tue, 16 Jun 2009 06:54:58 -0400 (EDT)
commit 6ec30d22aa660925e510c06d28de9c927c82e079
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Jun 16 11:33:15 2009 +0100
utf-8 decoding clipboard contents
hamster/stats.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/hamster/stats.py b/hamster/stats.py
index 3e0cb9e..d207cfe 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -1172,15 +1172,13 @@ than 15 minutes you seem to be a busy bee." % ("<b>%d</b>" % short_percent))
activity_name += "@%s" % res.category_name
if res.description:
- activity_name += "@%s" % res.description
+ activity_name += ", %s" % res.description
+
+ activity_name = activity_name.decode("utf-8")
- # TODO - avoid future facts
# TODO - set cursor to the pasted entry when done
# TODO - revisit parsing of selected date
- # TODO - check if clipboard should be utf8 decoded
- storage.add_fact(activity_name, start_time, end_time)
-
-
+ added_fact = storage.add_fact(activity_name, start_time, end_time)
"""keyboard events"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]