diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-02-17 10:59:29 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-02-17 10:59:29 (GMT) |
commit | 58e08c44c29b0b85fcf4931640fac7a171177de5 (patch) | |
tree | 757624b24318de8fc9973c47f93971ebe73ff5be | |
parent | 6b2f65861c9a87e8ac75eb63cfac7639f1762680 (diff) |
Update connections on an idle callback so the items have been already placed
-rw-r--r-- | view.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -147,8 +147,9 @@ class MindMapView(GtkView): thought_view.set_position(row[2], row[3]) thought_view.color = row[4] - self.canvas.request_update(thought_view) + gobject.idle_add(self.__update_connections_cb, thought_view, row) + def __update_connections_cb(self, thought_view, row): if row.parent is not None: parent_view = self._get_thought_by_id(row.parent[0]) self._update_connection(parent_view, thought_view) |