summaryrefslogtreecommitdiff
path: root/portato/plugins/notify.py
diff options
context:
space:
mode:
authorNecoro <>2007-10-22 22:27:29 +0000
committerNecoro <>2007-10-22 22:27:29 +0000
commit7afdc03507e0aa95f177f8a7c95086de5cfcc06c (patch)
tree41b8b7c894b3e6979c67d5b4363993cbaa2f1a7b /portato/plugins/notify.py
parent6d862d7a961ce70bc24450aadc99a901e5ab19c8 (diff)
downloadportato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.tar.gz
portato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.tar.bz2
portato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.zip
bundled shm module
Diffstat (limited to 'portato/plugins/notify.py')
-rw-r--r--portato/plugins/notify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/portato/plugins/notify.py b/portato/plugins/notify.py
index db024cf..ae2addd 100644
--- a/portato/plugins/notify.py
+++ b/portato/plugins/notify.py
@@ -1,7 +1,7 @@
from gettext import lgettext as _
import pynotify
-from portato import listener
+from portato import get_listener
from portato.helper import warning, error, debug
from portato.constants import APP_ICON, APP
@@ -20,4 +20,4 @@ def notify (retcode, **kwargs):
descr = _("Error Code: %d") % retcode
urgency = pynotify.URGENCY_CRITICAL
- listener.send_notify(base = text, descr = descr, icon = icon, urgency = urgency)
+ get_listener().send_notify(base = text, descr = descr, icon = icon, urgency = urgency)