Prefer testing the session instead of using a global variable
[ardour.git] / gtk2_ardour / public_editor.cc
index e88f273c8795e29944c2c90f0c448a9eec292de8..7d9f89354fdd257b49543fecde8990288e6ca405 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "public_editor.h"
 
+#include "pbd/i18n.h"
+
 PublicEditor* PublicEditor::_instance = 0;
 
 const int PublicEditor::window_border_width = 12;
@@ -28,9 +30,9 @@ const int PublicEditor::horizontal_spacing = 6;
 
 sigc::signal<void> PublicEditor::DropDownKeys;
 
-PublicEditor::PublicEditor ()
-       : Window (Gtk::WINDOW_TOPLEVEL)
-       , VisibilityTracker (*((Gtk::Window*)this))
+PublicEditor::PublicEditor (Gtk::Widget& content)
+       : Tabbable (content, _("Editor"))
+       , ActionMapOwner (X_("editor"))
        , _suspend_route_redisplay_counter (0)
 {
 }