summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dependents.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2018-12-10 18:19:31 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2018-12-10 18:19:31 -0500
commit5b513828bd34186640f94a127afb940aea3d17e3 (patch)
tree1641db5434e74bb902677e19e6ebec9833f29d86 /gtk2_ardour/ardour_ui_dependents.cc
parent154f9825ff72d691ba550de573948424b81a09a6 (diff)
reorder ARDOUR_UI action registration and adding tabbables to the main window, to avoid action-not-found in tabbable_state_change()
Diffstat (limited to 'gtk2_ardour/ardour_ui_dependents.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dependents.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/gtk2_ardour/ardour_ui_dependents.cc b/gtk2_ardour/ardour_ui_dependents.cc
index 3578f6f0d5..467ca264cb 100644
--- a/gtk2_ardour/ardour_ui_dependents.cc
+++ b/gtk2_ardour/ardour_ui_dependents.cc
@@ -65,8 +65,6 @@ using namespace Gtkmm2ext;
void
ARDOUR_UI::we_have_dependents ()
{
- install_actions ();
-
/* other windows and related key-event-handling contexts have already
* called Bindings::get_bindings() to setup their list of keybindings.
* Do that here for the global bindings.
@@ -76,6 +74,7 @@ ARDOUR_UI::we_have_dependents ()
error << _("Global keybindings are missing") << endmsg;
}
+ install_actions ();
ProcessorBox::register_actions ();
/* Global, editor, mixer, processor box actions are defined now. Link
@@ -274,17 +273,17 @@ ARDOUR_UI::setup_windows ()
return -1;
}
+ time_info_box = new TimeInfoBox ("ToolbarTimeInfo", false);
+ /* all other dialogs are created conditionally */
+
+ we_have_dependents ();
+
/* order of addition affects order seen in initial window display */
rc_option_editor->add_to_notebook (_tabs, _("Preferences"));
mixer->add_to_notebook (_tabs, _("Mixer"));
editor->add_to_notebook (_tabs, _("Editor"));
- time_info_box = new TimeInfoBox ("ToolbarTimeInfo", false);
- /* all other dialogs are created conditionally */
-
- we_have_dependents ();
-
top_packer.pack_start (menu_bar_base, false, false);
main_vpacker.pack_start (top_packer, false, false);