diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-29 21:00:44 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-01 20:46:54 +0100 |
commit | 370380d307344bfc5ab8c87142b12009937d48d6 (patch) | |
tree | ada6e2a7c96047b206b0765e467716ec5d6c3500 /src/procdialogs.cpp | |
parent | 95131f1b6b9eb6a8bfa7d5d39c12d6d29fea8f49 (diff) | |
download | mate-system-monitor-370380d307344bfc5ab8c87142b12009937d48d6.tar.bz2 mate-system-monitor-370380d307344bfc5ab8c87142b12009937d48d6.tar.xz |
Fixed adustments to only be set with a page_size of 0
* Setting an adjustment with non-zero page size is deprecated
taken from:
https://git.gnome.org/browse/gnome-system-monitor/commit/?id=9ff48dc
Diffstat (limited to 'src/procdialogs.cpp')
-rw-r--r-- | src/procdialogs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp index 95b2527..1fde60a 100644 --- a/src/procdialogs.cpp +++ b/src/procdialogs.cpp @@ -585,7 +585,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); @@ -695,7 +695,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), @@ -756,7 +756,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); |