diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-26 12:37:56 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-26 12:37:56 +0100 |
commit | e5a6a92f3127f3d268c1d53a79a8cacf972a4418 (patch) | |
tree | c982c6903007233d1690c1c1c1feb13d6ab8d7e3 /portato/plugins/new_version.py | |
parent | 33396d7da3154b1a2a7e8495d4e868da7255296e (diff) | |
download | portato-e5a6a92f3127f3d268c1d53a79a8cacf972a4418.tar.gz portato-e5a6a92f3127f3d268c1d53a79a8cacf972a4418.tar.bz2 portato-e5a6a92f3127f3d268c1d53a79a8cacf972a4418.zip |
Fixed new_version plugin (?)
Diffstat (limited to 'portato/plugins/new_version.py')
-rw-r--r-- | portato/plugins/new_version.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/portato/plugins/new_version.py b/portato/plugins/new_version.py index 988b173..47f6719 100644 --- a/portato/plugins/new_version.py +++ b/portato/plugins/new_version.py @@ -5,15 +5,18 @@ except ImportError: from threading import Thread +import gobject + from portato.helper import debug, _ from portato import get_listener from portato.constants import VERSION, APP_ICON, APP def find_thread (rev): b = branch.Branch.open("lp:portato") - + + debug("Installed rev: %s - Current rev: %s", rev, b.revno()) if int(rev) < int(b.revno()): - get_listener().send_notify(base = "New Portato Live Version Found", descr = "You have rev. %s, but the most recent revision is %s." % (rev, b.revno()), icon = APP_ICON) + gobject.idle_add(get_listener().send_notify, base = "New Portato Live Version Found", descr = "You have rev. %s, but the most recent revision is %s." % (rev, b.revno()), icon = APP_ICON) def find_version (*args, **kwargs): if not all((plugin, branch)): |