[Vasily] fix indicator usage. Fixes #5271
This commit is contained in:
parent
b6d7cb992f
commit
c9d702b5cd
|
@ -183,7 +183,7 @@ else:
|
|||
import latex
|
||||
HAVE_LATEX = latex.check_for_latex_support()
|
||||
|
||||
HAVE_INDICATOR = False
|
||||
HAVE_INDICATOR = True
|
||||
try:
|
||||
import indicate
|
||||
except ImportError:
|
||||
|
|
|
@ -341,7 +341,7 @@ def popup(event_type, jid, account, msg_type='', path_to_image=None,
|
|||
|
||||
if gajim.HAVE_INDICATOR and event_type in (_('New Message'),
|
||||
_('New Single Message'), _('New Private Message')):
|
||||
indicator = indicate.IndicatorMessage()
|
||||
indicator = indicate.Indicator()
|
||||
indicator.set_property('subtype', 'im')
|
||||
indicator.set_property('sender', jid)
|
||||
indicator.set_property('body', text)
|
||||
|
|
Loading…
Reference in New Issue