X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fthreshold%2Fthresholdwindow.C;h=7a22ba33668e91756c5bc0acad48de68de90fe7c;hb=f02c3f7d36eb475d1371f8e4b2814bea99e8b478;hp=f5706b0522e7ed61daf6556263d52a816e1836ed;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/threshold/thresholdwindow.C b/cinelerra-5.1/plugins/threshold/thresholdwindow.C index f5706b05..7a22ba33 100644 --- a/cinelerra-5.1/plugins/threshold/thresholdwindow.C +++ b/cinelerra-5.1/plugins/threshold/thresholdwindow.C @@ -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(); +} +