summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-03-26 02:07:53 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-03-26 02:07:53 +0100
commit33396d7da3154b1a2a7e8495d4e868da7255296e (patch)
treee4a84280a7931f6cc9f6073bcf132766cf3433cd
parentce94f0a53446c93ab28f9a12c40c5b56a10d282e (diff)
parentb759c601cc506a4abee3ab93749357be699cf030 (diff)
downloadportato-33396d7da3154b1a2a7e8495d4e868da7255296e.tar.gz
portato-33396d7da3154b1a2a7e8495d4e868da7255296e.tar.bz2
portato-33396d7da3154b1a2a7e8495d4e868da7255296e.zip
Merged from broken trunk
Diffstat (limited to '')
-rw-r--r--plugins/new_version.xml5
-rw-r--r--portato/plistener.py5
2 files changed, 8 insertions, 2 deletions
diff --git a/plugins/new_version.xml b/plugins/new_version.xml
index 6d300dd..1aa5e33 100644
--- a/plugins/new_version.xml
+++ b/plugins/new_version.xml
@@ -14,4 +14,9 @@
<item call="find_version">Check for new _versions</item>
</menu>
+ <options>
+ <option>disabled</option>
+ </options>
+
+
</plugin>
diff --git a/portato/plistener.py b/portato/plistener.py
index b5948ca..2e35ccb 100644
--- a/portato/plistener.py
+++ b/portato/plistener.py
@@ -71,7 +71,7 @@ class PListener (object):
Popen(cmdlist)
- def do_notify(self, base, descr, icon, urgency):
+ def do_notify(self, base, descr, icon, urgency = None):
"""Displays a notify.
This will do nothing if pynotify is not present and/or root is running the listener."""
@@ -80,7 +80,8 @@ class PListener (object):
pynotify.init(APP)
n = pynotify.Notification(base, descr, icon)
- n.set_urgency(int(urgency))
+ if urgency is not None and urgency != "":
+ n.set_urgency(int(urgency))
n.show()
def set_send (self, mem = None, sig = None, rw = None):