14 lines
341 B
Python
14 lines
341 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import gi
|
|
gi.require_version('Notify', '0.7')
|
|
from gi.repository import Notify
|
|
|
|
Notify.init('pybitmessage')
|
|
|
|
|
|
def connect_plugin(title, subtitle, category, label, icon):
|
|
if not icon:
|
|
icon = 'mail-message-new' if category == 2 else 'pybitmessage'
|
|
Notify.Notification.new(title, subtitle, icon).show()
|