[hamster-applet] activity column is used just by single widget, so moving accordingly



commit c5ca4a56c8ba28e3829d7b71eac6c9a008157b59
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sat Dec 5 19:22:35 2009 +0000

    activity column is used just by single widget, so moving accordingly

 hamster/stuff.py |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/hamster/stuff.py b/hamster/stuff.py
index 54941e5..472986f 100644
--- a/hamster/stuff.py
+++ b/hamster/stuff.py
@@ -142,27 +142,6 @@ def format_activity(name, category, description, pad_description = False):
     return text
     
 
-class ActivityColumn(gtk.TreeViewColumn):
-    def activity_painter(self, column, cell, model, iter):
-        activity_name = model.get_value(iter, self.name)
-        description = model.get_value(iter, self.description)
-        category = model.get_value(iter, self.category)
-        
-        markup = format_activity(activity_name, category, description)            
-        cell.set_property('markup', markup)
-        return
-        
-    def __init__(self, name, description, category = None):
-        gtk.TreeViewColumn.__init__(self)
-        
-        self.name, self.description, self.category = name, description, category
-        self.set_expand(True)
-        cell = gtk.CellRendererText()
-        self.pack_start(cell, True)
-        cell.set_property("ellipsize", pango.ELLIPSIZE_END)
-        self.set_cell_data_func(cell, self.activity_painter)
-
-
 def totals(iter, keyfunc, sumfunc):
     """groups items by field described in keyfunc and counts totals using value
        from sumfunc



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