Fix StatusIcon on MacOS

This commit is contained in:
Philipp Hörist 2017-10-17 18:36:02 +02:00
parent 1f0cc2b665
commit 0d16ef32e6
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@
from gi.repository import Gtk
from gi.repository import Gdk
import os
import sys
from gajim import dialogs
from gajim import config
@ -85,6 +86,8 @@ class StatusIcon:
if not self.status_icon:
self.status_icon = Gtk.StatusIcon()
self.statusicon_size = '16'
if sys.platform == 'darwin':
self.statusicon_size = '24'
self.status_icon.set_property('has-tooltip', True)
self.status_icon.connect('activate', self.on_status_icon_left_clicked)
self.status_icon.connect('popup-menu',