diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-07-23 08:35:24 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:22 -0500 |
commit | 90845af8fa89101b53761d6c1843c3d0daa87119 (patch) | |
tree | 848d527227142dd180676e3ad815c2eb8f154abf /gtk2_ardour/ardour_ui_dependents.cc | |
parent | e2dfc1069885054726e44261cf706c1f24f45635 (diff) |
hopefully get dynamic tabbable menu state right this time
Diffstat (limited to 'gtk2_ardour/ardour_ui_dependents.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dependents.cc | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui_dependents.cc b/gtk2_ardour/ardour_ui_dependents.cc index 4d50787852..97c81f187a 100644 --- a/gtk2_ardour/ardour_ui_dependents.cc +++ b/gtk2_ardour/ardour_ui_dependents.cc @@ -40,6 +40,8 @@ #include "splash.h" #include "route_params_ui.h" #include "opts.h" +#include "utils.h" + #include "i18n.h" using namespace Gtk; @@ -61,8 +63,15 @@ ARDOUR_UI::we_have_dependents () editor->setup_tooltips (); editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks)); - editor->add_to_notebook (_tabs, _("Editor")); - mixer->add_to_notebook (_tabs, _("Mixer")); + /* catch up on tabbable state */ + + std::cerr << "Tab catch up\n"; + + tabbable_state_change (*editor); + tabbable_state_change (*mixer); + tabbable_state_change (*rc_option_editor); + + std::cerr << "Tab catch done\n"; /* all actions are defined */ @@ -71,6 +80,13 @@ ARDOUR_UI::we_have_dependents () editor->track_mixer_selection (); mixer->track_editor_selection (); + + /* catch up on parameters */ + + boost::function<void (std::string)> pc (boost::bind (&ARDOUR_UI::parameter_changed, this, _1)); + Config->map_parameters (pc); + + ARDOUR_UI_UTILS::reset_dpi (); } void |