X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fgradient%2Fgradient.C;h=bea77b2211da68927236ccf8d7d1b4a5f9169737;hb=63ced327c156ea7fe4448a18b0b1b0f2571dce7e;hp=a7d7828e4ae34601a87f1b9c8909daeaa0e986fc;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/gradient/gradient.C b/cinelerra-5.1/plugins/gradient/gradient.C index a7d7828e..bea77b22 100644 --- a/cinelerra-5.1/plugins/gradient/gradient.C +++ b/cinelerra-5.1/plugins/gradient/gradient.C @@ -317,6 +317,12 @@ void GradientWindow::update_out_color() flash(out_color_x, out_color_y, COLOR_W, COLOR_H); } +void GradientWindow::done_event(int result) +{ + in_color_thread->close_window(); + out_color_thread->close_window(); +} + @@ -534,7 +540,7 @@ int GradientOutColorButton::handle_event() GradientInColorThread::GradientInColorThread(GradientMain *plugin, GradientWindow *window) - : ColorThread(1, _("Inner color")) + : ColorPicker(1, _("Inner color")) { this->plugin = plugin; this->window = window; @@ -569,7 +575,7 @@ int GradientInColorThread::handle_new_color(int output, int alpha) GradientOutColorThread::GradientOutColorThread(GradientMain *plugin, GradientWindow *window) - : ColorThread(1, _("Outer color")) + : ColorPicker(1, _("Outer color")) { this->plugin = plugin; this->window = window;