Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-02-17 10:59:29 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-02-17 10:59:29 (GMT)
commit58e08c44c29b0b85fcf4931640fac7a171177de5 (patch)
tree757624b24318de8fc9973c47f93971ebe73ff5be
parent6b2f65861c9a87e8ac75eb63cfac7639f1762680 (diff)
Update connections on an idle callback so the items have been already placed
-rw-r--r--view.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/view.py b/view.py
index afe5568..cc63a84 100644
--- a/view.py
+++ b/view.py
@@ -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)