summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Notify.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-03-07 13:30:11 +0100
committerAnton Khirnov <wyskas@gmail.com>2009-03-07 13:30:11 +0100
commitd827aded064c538eee0e96e4aebf97f19821b40c (patch)
tree8385b21afec038ba911f52efb58ac8e6af5a569d /nephilim/plugins/Notify.py
parent371d1cd71c442b5edeab10b0ae94dbecb9f4059f (diff)
mpclient: better handling of status changes.
also remove dangerous 'connected' signal.
Diffstat (limited to 'nephilim/plugins/Notify.py')
-rw-r--r--nephilim/plugins/Notify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nephilim/plugins/Notify.py b/nephilim/plugins/Notify.py
index 7535f05..ba998cc 100644
--- a/nephilim/plugins/Notify.py
+++ b/nephilim/plugins/Notify.py
@@ -88,14 +88,14 @@ class Notify(Plugin):
def _load(self):
self.o = winNotify(self)
self.connect(self.mpclient(), QtCore.SIGNAL('song_changed'), self.onSongChange)
- self.connect(self.mpclient(), QtCore.SIGNAL('ready'), self.onReady)
+ self.connect(self.mpclient(), QtCore.SIGNAL('connected'), self.onConnected)
self.connect(self.mpclient(), QtCore.SIGNAL('disconnected'), self.onDisconnect)
self.connect(self.mpclient(), QtCore.SIGNAL('state_changed'), self.onStateChange)
self.connect(self.mpclient(), QtCore.SIGNAL('volume_changed'),self.onVolumeChange)
def _unload(self):
self.o=None
self.disconnect(self.mpclient(), QtCore.SIGNAL('song_changed'), self.onSongChange)
- self.disconnect(self.mpclient(), QtCore.SIGNAL('ready'), self.onReady)
+ self.disconnect(self.mpclient(), QtCore.SIGNAL('connected'), self.onConnected)
self.disconnect(self.mpclient(), QtCore.SIGNAL('disconnected'), self.onDisconnect)
self.disconnect(self.mpclient(), QtCore.SIGNAL('state_changed'), self.onStateChange)
self.disconnect(self.mpclient(), QtCore.SIGNAL('volume_changed'),self.onVolumeChange)
@@ -111,7 +111,7 @@ class Notify(Plugin):
NOTIFY_PRIORITY_SONG)
self.settings().endGroup()
- def onReady(self):
+ def onConnected(self):
self.o.show('%s loaded'%APPNAME, self.settings().value(self.name() + '/timer').toInt()[0])
def onDisconnect(self):