mirror of https://github.com/PCSX2/pcsx2.git
gtk3: gtk_hscale_new_with_range => gtk_scale_new_with_range
This commit is contained in:
parent
feca2e3faf
commit
3d071e50ad
|
@ -348,17 +348,29 @@ bool RunLinuxDialog()
|
|||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(hack_logz_check), theApp.GetConfig("logz", 1));
|
||||
|
||||
// Shadeboost scale
|
||||
#if GTK_MAJOR_VERSION < 3
|
||||
sb_brightness = gtk_hscale_new_with_range(0, 200, 10);
|
||||
#else
|
||||
sb_brightness = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, 200, 10);
|
||||
#endif
|
||||
GtkWidget* sb_brightness_label = gtk_label_new("Shade Boost Brightness");
|
||||
gtk_scale_set_value_pos(GTK_SCALE(sb_brightness), GTK_POS_RIGHT);
|
||||
gtk_range_set_value(GTK_RANGE(sb_brightness), theApp.GetConfig("ShadeBoost_Brightness", 50));
|
||||
|
||||
#if GTK_MAJOR_VERSION < 3
|
||||
sb_contrast = gtk_hscale_new_with_range(0, 200, 10);
|
||||
#else
|
||||
sb_contrast = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, 200, 10);
|
||||
#endif
|
||||
GtkWidget* sb_contrast_label = gtk_label_new("Shade Boost Contrast");
|
||||
gtk_scale_set_value_pos(GTK_SCALE(sb_contrast), GTK_POS_RIGHT);
|
||||
gtk_range_set_value(GTK_RANGE(sb_contrast), theApp.GetConfig("ShadeBoost_Contrast", 50));
|
||||
|
||||
#if GTK_MAJOR_VERSION < 3
|
||||
sb_saturation = gtk_hscale_new_with_range(0, 200, 10);
|
||||
#else
|
||||
sb_saturation = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, 200, 10);
|
||||
#endif
|
||||
GtkWidget* sb_saturation_label = gtk_label_new("Shade Boost Saturation");
|
||||
gtk_scale_set_value_pos(GTK_SCALE(sb_saturation), GTK_POS_RIGHT);
|
||||
gtk_range_set_value(GTK_RANGE(sb_saturation), theApp.GetConfig("ShadeBoost_Saturation", 50));
|
||||
|
|
|
@ -243,7 +243,11 @@ void DisplayDialog()
|
|||
gtk_combo_box_set_active(GTK_COMBO_BOX(api_box), OutputAPI);
|
||||
|
||||
latency_label = gtk_label_new ("Latency:");
|
||||
#if GTK_MAJOR_VERSION < 3
|
||||
latency_slide = gtk_hscale_new_with_range(LATENCY_MIN, LATENCY_MAX, 5);
|
||||
#else
|
||||
latency_slide = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, LATENCY_MIN, LATENCY_MAX, 5);
|
||||
#endif
|
||||
gtk_range_set_value(GTK_RANGE(latency_slide), SndOutLatencyMS);
|
||||
|
||||
sync_label = gtk_label_new ("Synchronization Mode:");
|
||||
|
|
|
@ -104,15 +104,27 @@ namespace SoundtouchCfg
|
|||
default_button = gtk_button_new_with_label("Reset to Defaults");
|
||||
|
||||
seq_label = gtk_label_new("Sequence Length");
|
||||
#if GTK_MAJOR_VERSION < 3
|
||||
seq_slide = gtk_hscale_new_with_range(SequenceLen_Min, SequenceLen_Max, 2);
|
||||
#else
|
||||
seq_slide = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, SequenceLen_Min, SequenceLen_Max, 2);
|
||||
#endif
|
||||
gtk_range_set_value(GTK_RANGE(seq_slide), SequenceLenMS);
|
||||
|
||||
seek_label = gtk_label_new("Seek Window Size");
|
||||
#if GTK_MAJOR_VERSION < 3
|
||||
seek_slide = gtk_hscale_new_with_range(SeekWindow_Min, SeekWindow_Max, 1);
|
||||
#else
|
||||
seek_slide = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, SeekWindow_Min, SeekWindow_Max, 1);
|
||||
#endif
|
||||
gtk_range_set_value(GTK_RANGE(seek_slide), SeekWindowMS);
|
||||
|
||||
over_label = gtk_label_new("Overlap");
|
||||
#if GTK_MAJOR_VERSION < 3
|
||||
over_slide = gtk_hscale_new_with_range(Overlap_Min, Overlap_Max, 1);
|
||||
#else
|
||||
over_slide = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, Overlap_Min, Overlap_Max, 1);
|
||||
#endif
|
||||
gtk_range_set_value(GTK_RANGE(over_slide), OverlapMS);
|
||||
|
||||
main_box = gtk_vbox_new(false, 5);
|
||||
|
|
Loading…
Reference in New Issue