X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fdragcheckbox.C;h=be1c312792b189569646d285b2a55ad2077dc17c;hb=bd7011a86f60b4ef1abf11e2667373eba3a98c99;hp=c2e1f5d4829c4a0b1cf2be49bb1b87633041a201;hpb=9fed7535470aa37781733db836068da3b4c17a0d;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/dragcheckbox.C b/cinelerra-5.1/cinelerra/dragcheckbox.C index c2e1f5d4..be1c3127 100644 --- a/cinelerra-5.1/cinelerra/dragcheckbox.C +++ b/cinelerra-5.1/cinelerra/dragcheckbox.C @@ -1,3 +1,20 @@ +/* + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + #include "automation.h" #include "bctoggle.h" #include "canvas.h" @@ -84,6 +101,14 @@ void DragCheckBox::drag_deactivate() dragging = 0; } +int DragCheckBox::handle_ungrab() +{ + drag_deactivate(); + update(*value = 0); + update_gui(); + return 1; +} + int DragCheckBox::check_pending() { if( pending && !grab_event_count() ) {