[gnome-music] Rename "shuffle" key of settings schema as "repeat"



commit 8841e4432741683975f35b45cfd0f36ea1531124
Author: Arnel A. Borja <kyoushuu yahoo com>
Date:   Thu Jun 13 22:07:54 2013 +0800

    Rename "shuffle" key of settings schema as "repeat"
    
    Add a new enum to the settings schema that matches Player.RepeatType and
    rename the "shuffle" key as "repeat".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702171

 data/org.gnome.Music.gschema.xml |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/data/org.gnome.Music.gschema.xml b/data/org.gnome.Music.gschema.xml
index 19bfab0..b44d825 100644
--- a/data/org.gnome.Music.gschema.xml
+++ b/data/org.gnome.Music.gschema.xml
@@ -1,5 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <schemalist>
+    <enum id="org.gnome.Music.RepeatType">
+        <value nick="none" value="0"/>
+        <value nick="song" value="1"/>
+        <value nick="all" value="2"/>
+        <value nick="shuffle" value="3"/>
+    </enum>
     <schema path="/org/gnome/Music/" id="org.gnome.Music" gettext-domain="gnome-music">
         <key type="ai" name="window-size">
             <default>[768, 600]</default>
@@ -16,10 +22,10 @@
             <summary>Window maximized</summary>
             <description>Window maximized state</description>
         </key>
-        <key type="b" name="shuffle">
-            <default>false</default>
-            <summary>Shuffle playback</summary>
-            <description>If true, do randomized playback through the collection</description>
+        <key enum="org.gnome.Music.RepeatType" name="repeat">
+            <default>'none'</default>
+            <summary>Playback repeat mode</summary>
+            <description>Value identifies whether to repeat or randomize playback through the collection. 
Legal values are: "none", "song", "all", "shuffle".</description>
         </key>
         <key type="b" name="search">
             <default>false</default>
@@ -27,4 +33,4 @@
             <description>If true, the search bar is shown</description>
         </key>
     </schema>
-</schemalist>
\ No newline at end of file
+</schemalist>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]