diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-11-30 02:42:08 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-11-30 02:42:08 (GMT) |
commit | 92c39857a4d825e9acbb633cfd6536c54739e6ee (patch) | |
tree | af3233e7321db54748df3a87ed1c463ef8d87c16 | |
parent | b6d1f775b08b97a434f78e841e8e84397e54ffac (diff) |
prevent segfaults when trying to move the icon out of bounds
-rw-r--r-- | src/jarabe/desktop/groupbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/desktop/groupbox.py b/src/jarabe/desktop/groupbox.py index 76c2981..0f462d8 100644 --- a/src/jarabe/desktop/groupbox.py +++ b/src/jarabe/desktop/groupbox.py @@ -90,6 +90,6 @@ class GroupBox(hippo.Canvas): min_h_, icon_height = self._owner_icon.get_height_request(icon_width) x = (width - icon_width) / 2 y = (height - icon_height) / 2 - self._layout.move(self._owner_icon, x, y) + self._layout.move(self._owner_icon, max(x,0), max(y,0)) hippo.Canvas.do_size_allocate(self, allocation) |