Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / dragcheckbox.C
index c2e1f5d4829c4a0b1cf2be49bb1b87633041a201..be1c312792b189569646d285b2a55ad2077dc17c 100644 (file)
@@ -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() ) {