get statusicon position and size correctly now that we swtiched to gtk.statusicon
This commit is contained in:
parent
4d904560a7
commit
8946a2f898
|
@ -597,9 +597,8 @@ class DesktopNotification:
|
||||||
if version > [0, 3]:
|
if version > [0, 3]:
|
||||||
if gajim.interface.systray_enabled and \
|
if gajim.interface.systray_enabled and \
|
||||||
gajim.config.get('attach_notifications_to_systray'):
|
gajim.config.get('attach_notifications_to_systray'):
|
||||||
x, y = gajim.interface.systray.img_tray.window.get_origin()
|
status_icon = gajim.interface.systray.status_icon
|
||||||
width, height, = \
|
x, y, width, height = status_icon.get_geometry()[1]
|
||||||
gajim.interface.systray.img_tray.window.get_geometry()[2:4]
|
|
||||||
pos_x = x + (width / 2)
|
pos_x = x + (width / 2)
|
||||||
pos_y = y + (height / 2)
|
pos_y = y + (height / 2)
|
||||||
hints = {'x': pos_x, 'y': pos_y}
|
hints = {'x': pos_x, 'y': pos_y}
|
||||||
|
|
Loading…
Reference in New Issue