From 6bd9dd12a3d82b62136904e980d0f61d8dd7fa66 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 29 Apr 2024 12:24:07 -0600 Subject: [PATCH] connect preferences dialog buttons to pages Only the sync and MIDI tabs go anywhere sensible right now --- gtk2_ardour/livetrax_rc_option_editor.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/livetrax_rc_option_editor.cc b/gtk2_ardour/livetrax_rc_option_editor.cc index bad04f02e5..4aec00824d 100644 --- a/gtk2_ardour/livetrax_rc_option_editor.cc +++ b/gtk2_ardour/livetrax_rc_option_editor.cc @@ -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")));