mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
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:
parent
be614d0538
commit
5bb9c94e91
1 changed files with 16 additions and 0 deletions
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue