[gnome-chess/gnome-3-14] Revert "Set a limit on the max amount of time per game"



commit 69c8cca296fa2ad05700ae76d36941aee7712160
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Dec 16 18:53:14 2014 -0600

    Revert "Set a limit on the max amount of time per game"
    
    This reverts commit 4900b073e15de9ad4d27ab820be98c24b5e47f4f.
    
    This commit is harmless, but I really only intended it to be on master.

 data/preferences.ui  |    2 +-
 src/gnome-chess.vala |   22 ----------------------
 2 files changed, 1 insertions(+), 23 deletions(-)
---
diff --git a/data/preferences.ui b/data/preferences.ui
index 83d3aa8..1a66ee5 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -43,7 +43,7 @@
   </object>
   <object class="GtkAdjustment" id="duration_adjustment">
     <property name="lower">1</property>
-    <property name="upper">10</property>
+    <property name="upper">86400</property>
     <property name="step_increment">1</property>
     <property name="page_increment">10</property>
     <signal name="value-changed" handler="duration_changed_cb" swapped="no"/>
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 97f18e8..5113f0f 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1846,28 +1846,6 @@ public class ChessApplication : Gtk.Application
         int multiplier = 1;
         if (custom_duration_units_combo.get_active_iter (out iter))
             custom_duration_units_combo.model.get (iter, 1, out multiplier, -1);
-
-        switch (multiplier)
-        {
-        case 60:
-            if (duration_adjustment.get_upper () != 600)
-                duration_adjustment.set_upper (600);
-            break;
-        case 3600:
-            if (duration_adjustment.get_upper () != 10)
-            {
-                duration_adjustment.set_upper (10);
-                if (duration_adjustment.value > 10)
-                {
-                    duration_adjustment.value = 10;
-                    magnitude = 10;
-                }
-            }
-            break;
-        default:
-            assert_not_reached ();
-        }
-
         return magnitude * multiplier;
     }
 


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