diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-25 20:06:45 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-25 20:06:45 (GMT) |
commit | fa31b7c0bdb701886419c84b292803b19a077322 (patch) | |
tree | 7597aa1e12c029ff1b5f31a045eacb40da6c7c3e /shell | |
parent | 5b3eeb0a9c0baa359fc63798f454be634be42273 (diff) |
Align to the center of the icon
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/home/IconLayout.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/view/home/IconLayout.py b/shell/view/home/IconLayout.py index 0ce2ea7..f5f0267 100644 --- a/shell/view/home/IconLayout.py +++ b/shell/view/home/IconLayout.py @@ -73,7 +73,7 @@ class IconLayout: self._constraints[icon1] = [new_x, new_y] matrix = cairo.Matrix(1, 0, 0, 1, 0, 0) - matrix.translate(new_x, new_y) + matrix.translate(new_x - (width / 2), new_y - (height / 2)) icon1.set_transform(matrix) def update(self): |