summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dialogs.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-07-22 15:22:58 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-22 15:31:22 -0500
commitcf93eaec98fcd2a09173f7f975a74b3fcfe3a320 (patch)
treeeb511e361e848841d4d3505a3bb542aa69cea4c2 /gtk2_ardour/ardour_ui_dialogs.cc
parentfd938d95bfd37f2ae428938c8efee55e9196fd4f (diff)
break out window ops for Tabbables into show/hide/attach/detach
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dialogs.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc
index fb4f3d52a1..c31257eb5b 100644
--- a/gtk2_ardour/ardour_ui_dialogs.cc
+++ b/gtk2_ardour/ardour_ui_dialogs.cc
@@ -330,38 +330,38 @@ _hide_splash (gpointer arg)
}
void
-ARDOUR_UI::show_application_preferences ()
+ARDOUR_UI::show_tabbable (Tabbable* t)
{
if (splash && splash->is_visible()) {
// in 2 seconds, hide the splash screen
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 2000);
}
- rc_option_editor->make_visible ();
+ t->make_visible ();
}
void
-ARDOUR_UI::show_editor ()
+ARDOUR_UI::hide_tabbable (Tabbable* t)
{
- if (splash && splash->is_visible()) {
- // in 2 seconds, hide the splash screen
- Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 2000);
- }
-
- editor->make_visible ();
+ t->make_invisible ();
}
void
-ARDOUR_UI::show_mixer ()
+ARDOUR_UI::attach_tabbable (Tabbable* t)
{
if (splash && splash->is_visible()) {
// in 2 seconds, hide the splash screen
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 2000);
}
- mixer->make_visible ();
+ t->attach ();
}
+void
+ARDOUR_UI::detach_tabbable (Tabbable* t)
+{
+ t->detach ();
+}
void
ARDOUR_UI::toggle_meterbridge ()