diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-01-22 16:28:11 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-01-22 16:28:11 (GMT) |
commit | 69bebc6b6f7fd0bb73bc0eda538b44eacda3fe59 (patch) | |
tree | 72f06bc0a8fdbeb5db7a225224d62127caf57652 /view.py | |
parent | c743c06c1ebd28198ab94bab736fb83ff31d3086 (diff) |
Revert "Add links to the model"
This reverts commit c743c06c1ebd28198ab94bab736fb83ff31d3086.
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) + thought_model = model.get_thought(path[0]) 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(int(self.model.x), int(self.model.y), - int(self._last_width), int(self._last_height)) + return gtk.gdk.Rectangle(self.model.x, self.model.y, + self._last_width, self._last_height) |