Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/view.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-01-22 13:39:31 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-01-22 13:39:31 (GMT)
commitc743c06c1ebd28198ab94bab736fb83ff31d3086 (patch)
tree81f119ce4594133aefaed56f7f4a7cef64ee37fa /view.py
parent655029efa32ec3b921e7dc11231de1d6e6fe89dd (diff)
Add links to the model
Diffstat (limited to 'view.py')
-rw-r--r--view.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/view.py b/view.py
index 326ced8..1ec7420 100644
--- a/view.py
+++ b/view.py
@@ -108,14 +108,14 @@ class MindMapView(Canvas):
model = property(get_model, set_model)
def __row_inserted_cb(self, model, path, iter):
- logging.debug('__row_inserted_cb %r' % path)
+ logging.debug('__row_inserted_cb %r' % (path,))
- thought_model = model.get_thought(path[0])
+ thought_model = model.get_thought(path)
though_view = ThoughtView(thought_model)
self.add_element(though_view)
def __row_deleted_cb(self, model, path):
- logging.debug('__row_deleted_cb %r' % path)
+ logging.debug('__row_deleted_cb %r' % (path,))
though_view = self._get_though_by_id(path[0])
self.remove_element(though_view)
@@ -247,6 +247,6 @@ class ThoughtView(CanvasElement):
self._last_width = width + self._PADDING * 2
self._last_height = height + self._PADDING * 2
- return gtk.gdk.Rectangle(self.model.x, self.model.y,
- self._last_width, self._last_height)
+ return gtk.gdk.Rectangle(int(self.model.x), int(self.model.y),
+ int(self._last_width), int(self._last_height))