if (scrollable) {
if (h > 600) h = 600;
- if (w > 600) w = 600;
-
- if (w < 0) {
- w = 450;
- }
}
set_default_size (w, h);
+ set_resizable (_pluginui->resizable());
}
PluginUIWindow::~PluginUIWindow ()
}
bool
-#ifdef GTKOSX
+#ifdef AUDIOUNIT_SUPPORT
PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert> insert)
#else
PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert>)
#endif
{
-#ifndef GTKOSX
+#ifndef AUDIOUNIT_SUPPORT
return false;
#else
VBox* box;
PluginUIWindow::app_activated (bool)
#endif
{
-#ifdef GTKOSX
+#ifdef AUDIOUNIT_SUPPORT
if (_pluginui) {
if (yn) {
if (was_visible) {
bypass_button.set_name ("plugin bypass button");
bypass_button.set_text (_("Bypass"));
-
- if (!pi->active()) {
- bypass_button.set_active_state (Gtkmm2ext::Active);
- } else {
- bypass_button.unset_active_state ();
- }
-
+ bypass_button.set_active (!pi->active());
bypass_button.signal_button_release_event().connect (sigc::mem_fun(*this, &PlugUIBase::bypass_button_release));
focus_button.add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK);
boost::shared_ptr<Processor> p (weak_p.lock());
if (p) {
- if (!p->active()) {
- bypass_button.set_active_state (Gtkmm2ext::Active);
- } else {
- bypass_button.unset_active_state ();
- }
+ bypass_button.set_active (!p->active());
}
}