nasty little hack to rename "Apply" in the startup dialog to "Open" ... thanks GTK+ for making this so joyful and obvious

git-svn-id: svn://localhost/ardour2/branches/3.0@9755 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-06-21 22:16:07 +00:00
parent be614d0538
commit 5bb9c94e91

View file

@ -633,6 +633,22 @@ ArdourStartup::on_prepare (Gtk::Widget* page)
} else {
/* existing session requested */
setup_existing_session_page ();
}
/* HACK HACK HACK ... change the "Apply" button label
to say "Open"
*/
Gtk::Widget* tl = session_vbox.get_toplevel();
Gtk::Window* win;
if ((win = dynamic_cast<Gtk::Window*>(tl)) != 0) {
/* ::get_default_widget() is not wrapped in gtkmm */
Gtk::Widget* def = wrap (gtk_window_get_default_widget (win->gobj()));
Gtk::Button* button;
if ((button = dynamic_cast<Gtk::Button*>(def)) != 0) {
button->set_label (_("Open"));
}
}
}
}