diff options
author | infirit <[email protected]> | 2014-12-17 13:34:08 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-17 13:53:30 +0100 |
commit | 1e66f7902748b7aa2d19090c7d6d9adee88f5f30 (patch) | |
tree | 1b20bbc39e0bac448927dd4ad6ddb50b1abc107f /src | |
parent | 5d57852465113ea406baef808d3256f7d79e58c5 (diff) | |
download | mate-system-monitor-1e66f7902748b7aa2d19090c7d6d9adee88f5f30.tar.bz2 mate-system-monitor-1e66f7902748b7aa2d19090c7d6d9adee88f5f30.tar.xz |
Gtk3: Fix deprecated hscale use
Diffstat (limited to 'src')
-rw-r--r-- | src/procdialogs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp index b846d04..0eba272 100644 --- a/src/procdialogs.cpp +++ b/src/procdialogs.cpp @@ -223,7 +223,11 @@ procdialog_create_renice_dialog (ProcData *procdata) renice_adj = gtk_adjustment_new (info->nice, RENICE_VAL_MIN, RENICE_VAL_MAX, 1, 1, 0); new_nice_value = 0; +#if GTK_CHECK_VERSION (3, 0, 0) + hscale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, renice_adj); +#else hscale = gtk_hscale_new (GTK_ADJUSTMENT (renice_adj)); +#endif gtk_label_set_mnemonic_widget (GTK_LABEL (label), hscale); gtk_scale_set_digits (GTK_SCALE (hscale), 0); gtk_table_attach (GTK_TABLE (table), hscale, 1, 2, 0, 1, |