[gnome-music/wip/jfelder/mpris-cleanup: 5/10] mpris: Make app attribute internal
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/mpris-cleanup: 5/10] mpris: Make app attribute internal
- Date: Sat, 15 Jun 2019 14:47:28 +0000 (UTC)
commit 2f4daee26498dd0c4d4c8c6714b270c9e3df4b88
Author: Jean Felder <jfelder src gnome org>
Date: Thu Mar 14 10:35:13 2019 +0100
mpris: Make app attribute internal
gnomemusic/mpris.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index f7718ef3..a01fee7c 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -278,7 +278,7 @@ class MPRIS(DBusInterface):
path = '/org/mpris/MediaPlayer2'
super().__init__(name, path)
- self.app = app
+ self._app = app
self.player = app.props.player
self.player.connect(
'song-changed', self._on_current_song_changed)
@@ -597,10 +597,10 @@ class MPRIS(DBusInterface):
self._reload_playlists()
def _raise(self):
- self.app.do_activate()
+ self._app.do_activate()
def _quit(self):
- self.app.quit()
+ self._app.quit()
def _next(self):
self.player.next()
@@ -722,7 +722,7 @@ class MPRIS(DBusInterface):
def _get_all(self, interface_name):
if interface_name == MPRIS.MEDIA_PLAYER2_IFACE:
- application_id = self.app.props.application_id
+ application_id = self._app.props.application_id
return {
'CanQuit': GLib.Variant('b', True),
'Fullscreen': GLib.Variant('b', False),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]