[Pkg-bazaar-commits] ./bzr-gtk/unstable r347: Added property getter and setter method to the treeview.

Daniel Schierbeck daniel.schierbeck at gmail.com
Fri Apr 10 07:45:16 UTC 2009


------------------------------------------------------------
revno: 347
committer: Daniel Schierbeck <daniel.schierbeck at gmail.com>
branch nick: menubar
timestamp: Sun 2007-11-04 16:52:29 +0100
message:
  Added property getter and setter method to the treeview.
modified:
  viz/treeview.py
-------------- next part --------------
=== modified file 'viz/treeview.py'
--- a/viz/treeview.py	2007-11-04 15:49:42 +0000
+++ b/viz/treeview.py	2007-11-04 15:52:29 +0000
@@ -67,6 +67,18 @@
 
         self.connect('destroy', lambda w: self.branch.unlock())
 
+    def do_get_property(self, property):
+        if property.name == 'revno-column-visible':
+            self.revno_column.get_visible()
+        else:
+            raise AttributeError, 'unknown property %s' % property.name
+
+    def do_set_property(self, property, value):
+        if property.name == 'revno-column-visible':
+            self.revno_column.set_visible(value)
+        else:
+            raise AttributeError, 'unknown property %s' % property.name
+
     def get_revision(self):
         """Return revision id of currently selected revision, or None."""
         return self.revision



More information about the Pkg-bazaar-commits mailing list