[hamster-applet/gnome-2-26] to simplify things, pull the fact itself in the tree



commit ddb88b141e3c011bb36f939d94118bb547b05c39
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed Jul 8 13:11:08 2009 +0100

    to simplify things, pull the fact itself in the tree

 hamster/stuff.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/hamster/stuff.py b/hamster/stuff.py
index c7e344c..dca36ef 100644
--- a/hamster/stuff.py
+++ b/hamster/stuff.py
@@ -24,6 +24,7 @@
 import gtk
 from hamster import storage
 import pango
+import gobject
 from pango import ELLIPSIZE_END
 
 import datetime as dt
@@ -123,7 +124,7 @@ class DayStore(object):
         date = date or dt.date.today()
         
         # ID, Time, Name, Duration, Date, Description
-        self.fact_store = gtk.ListStore(int, str, str, str, str, str)
+        self.fact_store = gtk.ListStore(int, str, str, str, str, str, gobject.TYPE_PYOBJECT)
         
         self.facts = storage.get_facts(date)
         self.totals = {}
@@ -152,5 +153,6 @@ class DayStore(object):
                                     fact["start_time"].strftime("%H:%M"), 
                                     current_duration,
                                     fact["start_time"].strftime("%Y%m%d"),
-                                    escape_pango(fact["description"])])
+                                    escape_pango(fact["description"]),
+                                    fact])
 



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