[gnome-2048] Range animations speed.



commit a98ab9230bb9f5faec9d601c25af62f5ff3b381e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Jan 25 19:20:38 2019 +0100

    Range animations speed.
    
    For now, you could have gschema values
    that'd make the game not work anymore.

 data/org.gnome.2048.gschema.xml | 2 ++
 data/preferences.ui             | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/org.gnome.2048.gschema.xml b/data/org.gnome.2048.gschema.xml
index 2e64040..ab64a13 100644
--- a/data/org.gnome.2048.gschema.xml
+++ b/data/org.gnome.2048.gschema.xml
@@ -51,6 +51,8 @@
     </key>
     <key name="animations-speed" type="d">
       <default>100.0</default>
+      <!-- as in the preferences.ui file -->
+      <range min="20.0" max="2000.0"/>
       <!-- Translators: summary of a settings key, see 'dconf-editor /org/gnome/2048/animations-speed' -->
       <summary>Animations speed</summary>
       <!-- Translators: description of a settings key, see 'dconf-editor /org/gnome/2048/animations-speed' 
-->
diff --git a/data/preferences.ui b/data/preferences.ui
index 2a60e19..7774bfb 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -18,8 +18,8 @@
 <interface>
   <requires lib="gtk+" version="3.12"/>
   <object class="GtkAdjustment" id="animationsspeed">
-    <property name="lower">20</property>
-    <property name="upper">200</property>
+    <property name="lower">20</property>  <!-- also enforced in -->
+    <property name="upper">200</property> <!-- gschema.xml file -->
     <property name="value">100</property>
     <property name="step-increment">5</property>
     <property name="page-increment">10</property>


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