summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-06-21 22:16:07 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-06-21 22:16:07 +0000
commit5bb9c94e91ae1ac811da627a16307664c34cfd6e (patch)
tree0b43c585db6fe40cae622afb3e69ee17e01a28e3
parentbe614d0538ddd78b13b236f760afbd94af540202 (diff)
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
-rw-r--r--gtk2_ardour/startup.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc
index 1714364fd3..e1366c3acd 100644
--- a/gtk2_ardour/startup.cc
+++ b/gtk2_ardour/startup.cc
@@ -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"));
+ }
}
}
}