Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2009-09-23 18:43:31 +0400
committerYann Leboulanger <asterix@lagaule.org>2009-09-23 18:43:31 +0400
commitabba30b439ae36e2c318afbaf7beca06d9e07d5f (patch)
tree5fc40f790403999b9387ced68727f138b667b82a
parent40160ecdc28e4baaf81152536beeaa7819cc5947 (diff)
Totem now uses MPRIS API. Fixes #4705
-rw-r--r--src/music_track_listener.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/music_track_listener.py b/src/music_track_listener.py
index a54a0670c..07105a947 100644
--- a/src/music_track_listener.py
+++ b/src/music_track_listener.py
@@ -98,15 +98,6 @@ class MusicTrackListener(gobject.GObject):
'NameOwnerChanged', 'org.freedesktop.DBus',
arg0='net.sacredchao.QuodLibet')
- ## Totem
- ## patched by Lucky <lucky1.data@gmail.com>
- ## used with Totem DBus plugin:
- ## http://lucky.awardspace.co.uk/home/totem-plugins
- bus.add_signal_receiver(self._totem_playing_started_cb,
- 'playingStarted', 'org.gnome.Totem')
- bus.add_signal_receiver(self._totem_playing_stopped_cb,
- 'playingStopped', 'org.gnome.Totem')
-
def _player_name_owner_changed(self, name, old, new):
if not new:
self.emit('music-track-changed', None)
@@ -211,17 +202,6 @@ class MusicTrackListener(gobject.GObject):
info.duration = int(props.get('~#length', 0))
return info
- def _totem_playing_started_cb(self, title, album, artist, duration):
- self._last_playing_music = MusicTrackInfo()
- self._last_playing_music.title = title
- self._last_playing_music.album = album
- self._last_playing_music.artist = artist
- self._last_playing_music.duration = duration
- self.emit('music-track-changed', self._last_playing_music)
-
- def _totem_playing_stopped_cb(self):
- self.emit('music-track-changed', None)
-
def get_playing_track(self):
'''Return a MusicTrackInfo for the currently playing
song, or None if no song is playing'''