13
0

connect preferences dialog buttons to pages

Only the sync and MIDI tabs go anywhere sensible right now
This commit is contained in:
Paul Davis 2024-04-29 12:24:07 -06:00
parent 7b485ddf37
commit 6bd9dd12a3

View File

@ -2379,6 +2379,12 @@ RCOptionEditor::RCOptionEditor ()
button_box().set_homogeneous (true);
button_box().show_all ();
/* These bindings all use the page title, which is the full first (string argument) to ::add_option() */
audiomidi_tab_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &OptionEditor::set_current_page), _("General")));
midi_tab_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &OptionEditor::set_current_page), _("MIDI")));
preferences_tab_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &OptionEditor::set_current_page), _("General")));
sync_tab_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &OptionEditor::set_current_page), _("Transport")));
/* GENERAL *****************************************************************/
add_option (_("General"), new OptionEditorHeading (_("Audio/MIDI Setup")));