From 58adffb7ae669fc42201039750f58c8e9acad136 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 28 Apr 2003 13:55:21 +0000 Subject: [PATCH] Fix scrolling. Don't try to redraw points in other programs. git-svn-id: http://dom-editor.googlecode.com/svn/branches/Gtk2@474 ef21e15d-ca94-4315-9c45-0d95b1b2e117 --- Dome/List.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dome/List.py b/Dome/List.py index 2b6c065..772eee5 100644 --- a/Dome/List.py +++ b/Dome/List.py @@ -550,6 +550,7 @@ class ChainDisplay(g.DrawingArea): if not point: return w = self.window op, exit = point + if op.get_program() != self.prog: return try: obj = self.op_to_object[op] except: @@ -585,8 +586,10 @@ class ChainDisplay(g.DrawingArea): self.op_to_object = {} if self.prog: self.root_object = self.create_op(self.prog.code, 4, 4) + self.set_size_request(self.root_object.width + 8, self.root_object.height + 8) else: self.root_object = None + self.set_size_request(-1, -1) self.queue_draw() return 1 -- 2.11.4.GIT