changeset be35a310b6d2 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=be35a310b6d2 description: fix set_geometry() usage
diffstat:
src/notify.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r f30cb7d4cb69 -r be35a310b6d2 src/notify.py --- a/src/notify.py Sun Feb 17 20:58:28 2013 +0100 +++ b/src/notify.py Sun Feb 17 20:59:08 2013 +0100 @@ -362,7 +362,8 @@ 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}