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
This commit is contained in:
Tim Mayberry 2006-01-27 10:17:34 +00:00
parent b751f4f2e2
commit 3caed4762b
2 changed files with 7 additions and 4 deletions

View File

@ -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");

View File

@ -53,10 +53,6 @@ UI::UI (string name, int *argc, char ***argv, string rcfile)
theMain = new Main (argc, argv);
tips = new Tooltips;
// allow run-time rebinding of accels
Settings::get_default()->property_gtk_can_change_accels() = true;
if (pthread_key_create (&thread_request_buffer_key, 0)) {
cerr << _("cannot create thread request buffer key") << endl;
throw failed_constructor();