[gnome-music] mpris: Add Fullscreen and CanSetFullscreen properties
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] mpris: Add Fullscreen and CanSetFullscreen properties
- Date: Tue, 18 Nov 2014 11:39:27 +0000 (UTC)
commit 314653beb99327fa6d082ea1df4821496e6f188f
Author: Arnel Borja <arnelborja src gnome org>
Date: Sun Nov 16 09:46:22 2014 +0800
mpris: Add Fullscreen and CanSetFullscreen properties
Introduced in MPRIS 2.2.
https://bugzilla.gnome.org/show_bug.cgi?id=740212
gnomemusic/mpris.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 7ec7a3a..d1b4723 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -524,6 +524,8 @@ class MediaPlayer2Service(dbus.service.Object):
if interface_name == self.MEDIA_PLAYER2_IFACE:
return {
'CanQuit': True,
+ 'Fullscreen': False,
+ 'CanSetFullscreen': False,
'CanRaise': True,
'HasTrackList': True,
'Identity': 'Music',
@@ -577,7 +579,8 @@ class MediaPlayer2Service(dbus.service.Object):
in_signature='ssv')
def Set(self, interface_name, property_name, new_value):
if interface_name == self.MEDIA_PLAYER2_IFACE:
- pass
+ if property_name == 'Fullscreen':
+ pass
elif interface_name == self.MEDIA_PLAYER2_PLAYER_IFACE:
if property_name == 'Rate':
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]