colorpicker cleanup, make ffmpeg probes early default
[goodguy/history.git] / cinelerra-5.1 / plugins / threshold / thresholdwindow.C
index f5706b0522e7ed61daf6556263d52a816e1836ed..7a22ba33668e91756c5bc0acad48de68de90fe7c 100644 (file)
@@ -367,7 +367,7 @@ int ThresholdHighColorButton::handle_event()
 
 
 ThresholdLowColorThread::ThresholdLowColorThread(ThresholdMain *plugin, ThresholdWindow *window)
- : ColorThread(1, _("Low color"))
+ : ColorPicker(1, _("Low color"))
 {
        this->plugin = plugin;
        this->window = window;
@@ -387,7 +387,7 @@ int ThresholdLowColorThread::handle_new_color(int output, int alpha)
 
 
 ThresholdMidColorThread::ThresholdMidColorThread(ThresholdMain *plugin, ThresholdWindow *window)
- : ColorThread(1, _("Mid color"))
+ : ColorPicker(1, _("Mid color"))
 {
        this->plugin = plugin;
        this->window = window;
@@ -407,7 +407,7 @@ int ThresholdMidColorThread::handle_new_color(int output, int alpha)
 
 
 ThresholdHighColorThread::ThresholdHighColorThread(ThresholdMain *plugin, ThresholdWindow *window)
- : ColorThread(1, _("High color"))
+ : ColorPicker(1, _("High color"))
 {
        this->plugin = plugin;
        this->window = window;
@@ -537,5 +537,12 @@ void ThresholdWindow::update_high_color()
        flash(high_color_x, high_color_y, COLOR_W, COLOR_H);
 }
 
+void ThresholdWindow::done_event(int result)
+{
+       low_color_thread->close_window();
+       mid_color_thread->close_window();
+       high_color_thread->close_window();
+}
+