diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2006-01-27 10:17:34 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2006-01-27 10:17:34 +0000 |
commit | 3caed4762ba1ecf4c2ec09fb5e3fd9cd4d339f21 (patch) | |
tree | ad1a6d7aa090aad1a8d362a7068c50ad11c7a23c /gtk2_ardour/ardour_ui_ed.cc | |
parent | b751f4f2e219979c665a706ef09ca8b5d56cf36c (diff) |
fix stupid gtk design quirk and bad documentation...oh and rebinding accels at runtime should work
git-svn-id: svn://localhost/trunk/ardour2@299 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_ed.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_ed.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index fbe61775df..70b9c928bc 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -432,6 +432,13 @@ ARDOUR_UI::build_menu_bar () menu_bar = dynamic_cast<MenuBar*> (ActionManager::get_widget (X_("/Main"))); menu_bar->set_name ("MainMenuBar"); + /* + * This is needed because this property does not get installed + * until the Menu GObject class is registered, which happens + * when the first menu instance is created. + */ + Gtk::Settings::get_default()->property_gtk_can_change_accels() = true; + wall_clock_box.add (wall_clock_label); wall_clock_box.set_name ("WallClock"); wall_clock_label.set_name ("WallClock"); |