[gnome-system-monitor] Remove manual sanity checks on gsettings key value



commit f9909f3d53896f8d57e982e83dc623e464e7769a
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Sun Aug 4 19:32:06 2013 +0200

    Remove manual sanity checks on gsettings key value
    
    It is now done automatically with the ranges defined in the
    gsettings schema file.

 src/procman-app.cpp |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/procman-app.cpp b/src/procman-app.cpp
index fbda02d..2281956 100644
--- a/src/procman-app.cpp
+++ b/src/procman-app.cpp
@@ -56,8 +56,6 @@ timeouts_changed_cb (GSettings *settings, const gchar *key, gpointer data)
 
     if (g_str_equal (key, "update-interval")) {
         app->config.update_interval = g_settings_get_int (settings, key);
-        app->config.update_interval =
-            MAX (app->config.update_interval, 1000);
 
         app->smooth_refresh->reset();
 
@@ -65,9 +63,6 @@ timeouts_changed_cb (GSettings *settings, const gchar *key, gpointer data)
     }
     else if (g_str_equal (key, "graph-update-interval")){
         app->config.graph_update_interval = g_settings_get_int (settings, key);
-        app->config.graph_update_interval =
-            MAX (app->config.graph_update_interval,
-                 250);
         load_graph_change_speed(app->cpu_graph,
                                 app->config.graph_update_interval);
         load_graph_change_speed(app->mem_graph,
@@ -76,11 +71,7 @@ timeouts_changed_cb (GSettings *settings, const gchar *key, gpointer data)
                                 app->config.graph_update_interval);
     }
     else if (g_str_equal(key, "disks-interval")) {
-
         app->config.disks_update_interval = g_settings_get_int (settings, key);
-        app->config.disks_update_interval =
-            MAX (app->config.disks_update_interval, 1000);
-
         disks_reset_timeout (app);
     }
     else {


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