Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-09-24 22:52:10 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-09-24 22:52:10 (GMT)
commitd42b9da06d5cde89a6116d711fc6ae216256cabc (patch)
tree0335334a07efa50f1f5fbaf7ae68963b301ed54b
parenteac58dcfede3b17163ca625813f55dbaf1d72d38 (diff)
Use get/set_property rather than direct accessors
-rw-r--r--shell/view/home/IconLayout.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/view/home/IconLayout.py b/shell/view/home/IconLayout.py
index eedced8..1ec1816 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)