making the "New project" works
authorLincoln de Sousa <lincoln@minaslivre.org>
Sat, 9 Aug 2008 20:04:11 +0000 (17:04 -0300)
committerLincoln de Sousa <lincoln@minaslivre.org>
Sat, 9 Aug 2008 20:04:11 +0000 (17:04 -0300)
gzv.py

diff --git a/gzv.py b/gzv.py
index 81b88d9..68e4d38 100644 (file)
--- a/gzv.py
+++ b/gzv.py
@@ -73,7 +73,7 @@ class Project(object):
         self.image = image
         self.width = width
         self.height = height
-        self.focus_points_file = None
+        self.focus_points_file = ''
 
     def save_to_file(self, path):
         bn = os.path.basename(path)
@@ -191,6 +191,7 @@ class Gzv(GladeLoader):
         self.balls = self.load_balls_from_file(project.focus_points_file)
         self.image = project.image
         self.load_balls_to_treeview()
+        self.draw.queue_draw()
 
     def load_balls_to_treeview(self):
         model = self.treeview.get_model()