summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dependents.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-21 15:10:49 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-22 15:31:21 -0500
commit02c8d6d648a4d54dc796fd994106e74b2e9dae32 (patch)
treecfef34d65d34e99e7b03796dbc52658d8e263933 /gtk2_ardour/ardour_ui_dependents.cc
parentb2dc5a52b788b77ceb826fcc897c8ead11b8a6ba (diff)
the basics of tabbed
Diffstat (limited to 'gtk2_ardour/ardour_ui_dependents.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dependents.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_dependents.cc b/gtk2_ardour/ardour_ui_dependents.cc
index 7227d4f87f..41af709e2f 100644
--- a/gtk2_ardour/ardour_ui_dependents.cc
+++ b/gtk2_ardour/ardour_ui_dependents.cc
@@ -61,6 +61,9 @@ ARDOUR_UI::we_have_dependents ()
editor->setup_tooltips ();
editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
+ std::cerr << "Mixer page = " << editor->tabs().append_page (*mixer, _("Mixer")) << std::endl;
+ editor->tabs().set_tab_detachable (*mixer);
+
/* all actions are defined */
ActionManager::enable_accelerators ();
@@ -101,3 +104,28 @@ ARDOUR_UI::exit_on_main_window_close (GdkEventAny * /*ev*/)
#endif
}
+Gtk::Notebook*
+ARDOUR_UI::tab_window_root_drop (GtkNotebook* src,
+ GtkWidget* w,
+ gint x,
+ gint y,
+ gpointer)
+{
+ using namespace std;
+
+ if (w == GTK_WIDGET(mixer->gobj())) {
+ /* Mixer */
+
+ cerr << "Call use own window\n";
+
+ Gtk::Notebook* nb = mixer->use_own_window ();
+ Gtk::Window* win = (Gtk::Window*) nb->get_toplevel ();
+
+ win->move (x, y);
+ win->present ();
+
+ return nb;
+ }
+
+ return 0;
+}