From abba30b439ae36e2c318afbaf7beca06d9e07d5f Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 23 Sep 2009 16:43:31 +0200
Subject: [PATCH] Totem now uses MPRIS API. Fixes #4705

---
 src/music_track_listener.py | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/src/music_track_listener.py b/src/music_track_listener.py
index a54a0670cd..07105a947c 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'''
-- 
GitLab