From f26e85a1fa702306a51a1c23d742a8f642455ddd Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 8 Sep 2006 22:49:49 +0200 Subject: [PATCH] Write a canvas subclass in 1200x900 that adapts to screen. Use it in the test. --- sugar/canvas/Makefile.am | 1 + tests/test-icons.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sugar/canvas/Makefile.am b/sugar/canvas/Makefile.am index e4c142b8..619ec2aa 100644 --- a/sugar/canvas/Makefile.am +++ b/sugar/canvas/Makefile.am @@ -1,6 +1,7 @@ sugardir = $(pythondir)/sugar/canvas sugar_PYTHON = \ __init__.py \ + CanvasView.py \ Colors.py \ GridLayout.py \ GridModel.py \ diff --git a/tests/test-icons.py b/tests/test-icons.py index 2e362fb3..b0d64852 100755 --- a/tests/test-icons.py +++ b/tests/test-icons.py @@ -9,15 +9,13 @@ import goocanvas from sugar.canvas import IconColor from sugar.canvas.IconItem import IconItem +from sugar.canvas.CanvasView import CanvasView window = gtk.Window() window.connect("destroy", lambda w: gtk.main_quit()) -window.set_default_size(800, 600) window.show() -canvas = goocanvas.CanvasView() -canvas.set_size_request(800, 600) -canvas.set_bounds(0, 0, 800, 600) +canvas = CanvasView() canvas.show() window.add(canvas)