From 53d9686e6ef59171d66daa6d12e647fc00554ad3 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 8 Sep 2006 10:16:23 +0200 Subject: [PATCH] Use float for x,y,w,h --- sugar/canvas/GridLayout.py | 8 ++++---- sugar/canvas/ScreenContainer.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sugar/canvas/GridLayout.py b/sugar/canvas/GridLayout.py index c7c08466..cf863275 100644 --- a/sugar/canvas/GridLayout.py +++ b/sugar/canvas/GridLayout.py @@ -68,13 +68,13 @@ class GridLayout: class GridGroup(goocanvas.Group): __gproperties__ = { - 'x' : (int, None, None, 0, 1600, 800, + 'x' : (float, None, None, -10e6, 10e6, 800.0, gobject.PARAM_READWRITE), - 'y' : (int, None, None, 0, 1200, 600, + 'y' : (float, None, None, -10e6, 10e6, 600.0, gobject.PARAM_READWRITE), - 'width' : (int, None, None, 0, 1600, 800, + 'width' : (float, None, None, 0, 10e6, 800.0, gobject.PARAM_READWRITE), - 'height' : (int, None, None, 0, 1200, 600, + 'height' : (float, None, None, 0, 10e6, 600.0, gobject.PARAM_READWRITE) } diff --git a/sugar/canvas/ScreenContainer.py b/sugar/canvas/ScreenContainer.py index 953f66a5..16bf30db 100644 --- a/sugar/canvas/ScreenContainer.py +++ b/sugar/canvas/ScreenContainer.py @@ -3,9 +3,9 @@ import gtk class ScreenContainer(gobject.GObject): __gproperties__ = { - 'width' : (int, None, None, 0, 1600, 800, + 'width' : (float, None, None, 0, 10e6, 800.0, gobject.PARAM_READABLE), - 'height' : (int, None, None, 0, 1200, 600, + 'height' : (float, None, None, 0, 10e6, 600.0, gobject.PARAM_READABLE) }