GUI limitation: Require engine to add/remove tracks/busses
[ardour.git] / gtk2_ardour / option_editor.cc
index 97912eab4cb2bddb506f6fabd8d9530ca9d5c43c..b685e789472c35f5e3e0455c7bf67509500dde34 100644 (file)
@@ -608,6 +608,20 @@ ClockOption::set_session (Session* s)
 
 /*--------------------------*/
 
+WidgetOption::WidgetOption (string const & i, string const & n, Gtk::Widget& w)
+       : Option (i, n)
+       , _widget (&w)
+{
+}
+
+void
+WidgetOption::add_to_page (OptionEditorPage* p)
+{
+       add_widget_to_page (p, _widget);
+}
+
+/*--------------------------*/
+
 OptionEditorPage::OptionEditorPage ()
        : table (1, 3)
 {