From d42b9da06d5cde89a6116d711fc6ae216256cabc Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sun, 24 Sep 2006 18:52:10 -0400 Subject: [PATCH] Use get/set_property rather than direct accessors --- shell/view/home/IconLayout.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/view/home/IconLayout.py b/shell/view/home/IconLayout.py index eedced81..1ec1816c 100644 --- a/shell/view/home/IconLayout.py +++ b/shell/view/home/IconLayout.py @@ -14,7 +14,7 @@ class IconLayout: self._icons.remove(icon) def _is_valid_position(self, icon, x, y): - icon_size = icon.props.size + icon_size = icon.get_property('size') border = 20 if not (border < x < self._width - icon_size - border and \ @@ -30,5 +30,5 @@ class IconLayout: if self._is_valid_position(icon, x, y): break - icon.props.x = x - icon.props.y = y + icon.set_property('x', x) + icon.set_property('y', y)