[gnome-system-monitor/gtk3] Fixed adustments to only be set with a page_size of 0.



commit 8e04b64c9613fb910c37727c67b51a26f4455c9c
Author: Chris Kühl <chrisk openismus com>
Date:   Wed Feb 9 11:43:33 2011 +0100

    Fixed adustments to only be set with a page_size of 0.
    
    * Setting an adjustment with non-zero page size is deprecated

 src/procdialogs.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index eca4869..2e16504 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -556,7 +556,7 @@ procdialog_create_preferences_dialog (ProcData *procdata)
 							  MAX_UPDATE_INTERVAL / 1000,
 							  0.25,
 							  1.0,
-							  1.0);
+							  0);
 
 	spin_button = gtk_spin_button_new (adjustment, 1.0, 2);
 	gtk_box_pack_start (GTK_BOX (hbox3), spin_button, FALSE, FALSE, 0);
@@ -666,7 +666,7 @@ procdialog_create_preferences_dialog (ProcData *procdata)
 			  
 	update = (gfloat) procdata->config.graph_update_interval;
 	adjustment = (GtkAdjustment *) gtk_adjustment_new(update / 1000.0, 0.25, 
-							  100.0, 0.25, 1.0, 1.0);
+							  100.0, 0.25, 1.0, 0);
 	spin_button = gtk_spin_button_new (adjustment, 1.0, 2);
 	g_signal_connect (G_OBJECT (spin_button), "focus_out_event",
 			  G_CALLBACK(SBU::callback),
@@ -726,7 +726,7 @@ procdialog_create_preferences_dialog (ProcData *procdata)
 			  
 	update = (gfloat) procdata->config.disks_update_interval;
 	adjustment = (GtkAdjustment *) gtk_adjustment_new (update / 1000.0, 1.0, 
-							   100.0, 1.0, 1.0, 1.0);
+							   100.0, 1.0, 1.0, 0);
 	spin_button = gtk_spin_button_new (adjustment, 1.0, 0);
 	gtk_box_pack_start (GTK_BOX (hbox3), spin_button, FALSE, FALSE, 0);
 	gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin_button);



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