hamster-applet r629 - trunk/hamster



Author: tbaugis
Date: Mon Nov 17 23:33:00 2008
New Revision: 629
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=629&view=rev

Log:
nobody uses total_store anymore

Modified:
   trunk/hamster/stuff.py

Modified: trunk/hamster/stuff.py
==============================================================================
--- trunk/hamster/stuff.py	(original)
+++ trunk/hamster/stuff.py	Mon Nov 17 23:33:00 2008
@@ -105,9 +105,6 @@
         # ID, Time, Name, Duration, Date
         self.fact_store = gtk.ListStore(int, str, str, str, str)
         
-        # Dummy ID to distinct between fact_store, Name, Duration
-        self.total_store = gtk.ListStore(int, str, str)
-
         self.facts = storage.get_facts(date)
         self.totals = {}
         
@@ -136,9 +133,3 @@
                                     current_duration,
                                     fact["start_time"].strftime("%Y%m%d")])
 
-        # now we are good to append totals!
-        # no sorting - chronological is intuitive
-        for total in self.totals:
-            if (self.totals[total]) > 0: # TODO - check if this zero check is still necessary (it was 6min check before) 
-                self.total_store.append([-1, format_duration(self.totals[total]), total])
-



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