From 7339a1a67c149f8aa818e6b084b18280f108ea8b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 17 Feb 2013 20:59:08 +0100 Subject: [PATCH] fix set_geometry() usage --- src/notify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/notify.py b/src/notify.py index 6153367a8..7a32d81ed 100644 --- a/src/notify.py +++ b/src/notify.py @@ -362,7 +362,8 @@ class DesktopNotification: if gajim.interface.systray_enabled and \ gajim.config.get('attach_notifications_to_systray'): status_icon = gajim.interface.systray.status_icon - x, y, width, height = status_icon.get_geometry()[1] + rect = status_icon.get_geometry()[2] + x, y, width, height = rect.x, rect.y, rect.width, rect.height pos_x = x + (width / 2) pos_y = y + (height / 2) hints = {'x': pos_x, 'y': pos_y}