[hamster-applet] don't use property setters as those where introduced in python 2.6



commit f17ed7b027a7509db7f21d8d2871bf2f28ac3b07
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun Dec 13 22:02:26 2009 +0000

    don't use property setters as those where introduced in python 2.6

 hamster/stats_reports.py    |    2 +-
 hamster/widgets/facttree.py |    2 +-
 hamster/widgets/tags.py     |    4 +---
 3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/hamster/stats_reports.py b/hamster/stats_reports.py
index 9ab6f9f..4e4c13b 100644
--- a/hamster/stats_reports.py
+++ b/hamster/stats_reports.py
@@ -583,7 +583,7 @@ class TotalsTree(gtk.TreeView):
         self.append_column(nameColumn)
 
         tag_cell = widgets.TagCellRenderer()
-        tag_cell.font_size = 8;
+        tag_cell.set_font_size(8);
         tagColumn = gtk.TreeViewColumn("", tag_cell, data=1)
         tagColumn.set_expand(True)
 
diff --git a/hamster/widgets/facttree.py b/hamster/widgets/facttree.py
index 19577a5..5db381a 100644
--- a/hamster/widgets/facttree.py
+++ b/hamster/widgets/facttree.py
@@ -96,7 +96,7 @@ class FactTree(gtk.TreeView):
         self.append_column(nameColumn)
 
         tag_cell = TagCellRenderer()
-        tag_cell.font_size = 8;
+        tag_cell.set_font_size(8);
         tagColumn = gtk.TreeViewColumn("", tag_cell, data=6)
         tagColumn.set_expand(True)
         self.append_column(tagColumn)
diff --git a/hamster/widgets/tags.py b/hamster/widgets/tags.py
index 3b9db0b..f7897f1 100644
--- a/hamster/widgets/tags.py
+++ b/hamster/widgets/tags.py
@@ -324,12 +324,10 @@ class TagCellRenderer(gtk.GenericCellRenderer):
         self._font_size = 10
         self.layout = None
     
-    @property
     def font_size(self):
         return self._font_size
 
-    @font_size.setter
-    def font_size(self, val):
+    def set_font_size(self, val):
         self._font_size = val
         self._font.set_size(pango.SCALE * self._font_size)
         



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