From 8946a2f898e126d1ba40fab8307a8f4b8203cf5b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 26 Nov 2009 20:18:09 +0100 Subject: [PATCH] get statusicon position and size correctly now that we swtiched to gtk.statusicon --- src/notify.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/notify.py b/src/notify.py index c155de29e..587c4e292 100644 --- a/src/notify.py +++ b/src/notify.py @@ -597,9 +597,8 @@ class DesktopNotification: if version > [0, 3]: if gajim.interface.systray_enabled and \ gajim.config.get('attach_notifications_to_systray'): - x, y = gajim.interface.systray.img_tray.window.get_origin() - width, height, = \ - gajim.interface.systray.img_tray.window.get_geometry()[2:4] + status_icon = gajim.interface.systray.status_icon + x, y, width, height = status_icon.get_geometry()[1] pos_x = x + (width / 2) pos_y = y + (height / 2) hints = {'x': pos_x, 'y': pos_y}