[gnome-music/wip/jfelder/fix-one-song-repeat-all: 1/2] player: Reorder RepeatMode enum
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/fix-one-song-repeat-all: 1/2] player: Reorder RepeatMode enum
- Date: Tue, 23 Apr 2019 23:08:16 +0000 (UTC)
commit e0409b02bc138c9985ecf5ea6f9b51b53a0c6ec4
Author: Jean Felder <jfelder src gnome org>
Date: Tue Apr 23 23:04:51 2019 +0200
player: Reorder RepeatMode enum
The gsetting RepeatMode also needs to be updated with the new values.
This will allow to check if repeat mode is in a loop
mode (RepeatMode.SONG or RepeatMode.ALL is set).
data/org.gnome.Music.gschema.xml | 6 +++---
gnomemusic/player.py | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/org.gnome.Music.gschema.xml b/data/org.gnome.Music.gschema.xml
index c54c9280..bd2d7ea3 100644
--- a/data/org.gnome.Music.gschema.xml
+++ b/data/org.gnome.Music.gschema.xml
@@ -2,9 +2,9 @@
<schemalist>
<enum id="org.gnome.Music.RepeatMode">
<value nick="none" value="0"/>
- <value nick="song" value="1"/>
- <value nick="all" value="2"/>
- <value nick="shuffle" value="3"/>
+ <value nick="shuffle" value="1"/>
+ <value nick="song" value="2"/>
+ <value nick="all" value="3"/>
</enum>
<schema path="/org/gnome/Music/" id="org.gnome.Music" gettext-domain="org.gnome.Music">
<key type="ai" name="window-size">
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index dedbccfe..21a3faca 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -49,9 +49,9 @@ playlists = Playlists.get_default()
class RepeatMode(IntEnum):
"""Enum for player repeat mode"""
NONE = 0
- SONG = 1
- ALL = 2
- SHUFFLE = 3
+ SHUFFLE = 1
+ SONG = 2
+ ALL = 3
class ValidationStatus(IntEnum):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]