fix creating Notification via pynotify. See #8308

This commit is contained in:
Yann Leboulanger 2016-03-30 20:45:50 +02:00
parent 588ead0990
commit 398b0a6385

View file

@ -116,7 +116,7 @@ text=None, timeout=-1):
else: else:
_title = title _title = title
notification = Notify.Notification(_title, _text) notification = Notify.Notification.new(_title, _text)
notification.set_timeout(timeout*1000) notification.set_timeout(timeout*1000)
notification.set_category(event_type) notification.set_category(event_type)