diff options
Diffstat (limited to 'view.py')
-rw-r--r-- | view.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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)) |