sams icons, bsd fixups, lv2 deps
[goodguy/history.git] / cinelerra-5.1 / cinelerra / appearanceprefs.C
index 15e61cdfa23c85be241c6b40ec91ef11d2ab529b..2f51f61fb359cdf4a71ff18a5e4b7f22b68ed524 100644 (file)
@@ -191,7 +191,12 @@ void AppearancePrefs::create_objects()
        y1 += displacement->get_h() + 5;
        add_subwindow(thumbnails = new ViewThumbnails(x1, y1, pwindow));
        y1 += thumbnails->get_h() + 5;
-       add_subwindow(perpetual = new PerpetualSession(x1, y1, pwindow));
+       PrefsAutostartLV2UI *autostart_lv2ui = new PrefsAutostartLV2UI(x1, y1,pwindow);
+       add_subwindow(autostart_lv2ui);
+       y1 += autostart_lv2ui->get_h() + 5;
+       PerpetualSession *perpetual = new PerpetualSession(x1, y1, pwindow);
+       add_subwindow(perpetual);
+       y1 += perpetual->get_h() + 5;
        if( y < y1 ) y = y1;
 }
 
@@ -631,6 +636,18 @@ int YuvColorRangeItem::handle_event()
 }
 
 
+PrefsAutostartLV2UI::PrefsAutostartLV2UI(int x, int y, PreferencesWindow *pwindow)
+ : BC_CheckBox(x, y,
+       pwindow->thread->preferences->autostart_lv2ui, _("Auto start lv2 gui"))
+{
+       this->pwindow = pwindow;
+}
+int PrefsAutostartLV2UI::handle_event()
+{
+       pwindow->thread->preferences->autostart_lv2ui = get_value();
+       return 1;
+}
+
 PerpetualSession::PerpetualSession(int x, int y, PreferencesWindow *pwindow)
  : BC_CheckBox(x, y,
        pwindow->thread->preferences->perpetual_session, _("Perpetual session"))