diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-03-06 10:31:54 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-03-06 10:31:54 +0100 |
commit | c1e234beae44134d567fb3d8915a77649379fd63 (patch) | |
tree | c0662304dc023a9213b1b2466244473623def741 /nephilim/plugins/Systray.py | |
parent | 4bb2fd69ab26566f93815dae4aef2679c57b9d05 (diff) |
mpclient: get rid of CamelCase everywhere.
Diffstat (limited to 'nephilim/plugins/Systray.py')
-rw-r--r-- | nephilim/plugins/Systray.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nephilim/plugins/Systray.py b/nephilim/plugins/Systray.py index 1a9eca8..4a3c45d 100644 --- a/nephilim/plugins/Systray.py +++ b/nephilim/plugins/Systray.py @@ -29,7 +29,7 @@ class Systray(Plugin): if type(event)==QtGui.QWheelEvent: numDegrees=event.delta() / 8 numSteps=5*numDegrees/15 - self.plugin.mpclient.setVolume(self.plugin.mpclient.getVolume() + numSteps) + self.plugin.mpclient.set_volume(self.plugin.mpclient.volume() + numSteps) event.accept() return True return False @@ -51,7 +51,7 @@ class Systray(Plugin): return "Display the mpclientpc icon in the systray." def update(self, params): - status = self.mpclient.getStatus() + status = self.mpclient.status() if not status: return @@ -61,7 +61,7 @@ class Systray(Plugin): values['length'] = sec2min(status['length']) values['time'] = sec2min(status['time']) - song = self.mpclient.getCurrentSong() + song = self.mpclient.current_song() if song: self.o.setToolTip(expand_tags(self.format, (song,))) else: @@ -93,7 +93,7 @@ class Systray(Plugin): else: w.setVisible(True) elif reason == QtGui.QSystemTrayIcon.MiddleClick: - if self.mpclient.isPlaying(): + if self.mpclient.is_playing(): self.mpclient.pause() else: self.mpclient.resume() |