add igors mask svgs, add composer clear_color pref, remove key DEL for mask gui,...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / gradient / gradient.C
index 8e3ac91ee3b2726013272bb3bdc1e0e940471b68..fa001041c975768c42833924f3d40a951f4f2193 100644 (file)
@@ -386,16 +386,10 @@ GradientInColorButton::GradientInColorButton(GradientMain *plugin, GradientWindo
 {
        this->plugin = plugin;
        this->gui = gui;
-       for( int i=0; i<3; ++i ) {
-               vframes[i] = new VFrame(COLOR_W, COLOR_H, BC_RGB888);
-               vframes[i]->clear_frame();
-       }
 }
 
 GradientInColorButton::~GradientInColorButton()
 {
-       for( int i=0; i<3; ++i )
-               delete vframes[i];
 }
 
 void GradientInColorButton::handle_done_event(int result)
@@ -424,22 +418,16 @@ GradientOutColorButton::GradientOutColorButton(GradientMain *plugin, GradientWin
 {
        this->plugin = plugin;
        this->gui = gui;
-       for( int i=0; i<3; ++i ) {
-               vframes[i] = new VFrame(COLOR_W, COLOR_H, BC_RGB888);
-               vframes[i]->clear_frame();
-       }
 }
 
 GradientOutColorButton::~GradientOutColorButton()
 {
-       for( int i=0; i<3; ++i )
-               delete vframes[i];
 }
 
 void GradientOutColorButton::handle_done_event(int result)
 {
        if( result ) {
-               gui->lock_window("GradientInColorButton::handle_done_event");
+               gui->lock_window("GradientOutColorButton::handle_done_event");
                update_gui(orig_color, orig_alpha);
                gui->unlock_window();
                handle_new_color(orig_color, orig_alpha);