Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv31925

Modified Files:
        AButton.cpp 
Log Message:
Use disabled image for toggle buttons that are not pressed.
Fix unintended Click when moving mouse into button while mouse buttons is 
pressed and then releasing.

Index: AButton.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/AButton.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- AButton.cpp 3 Jul 2007 09:09:31 -0000       1.40
+++ AButton.cpp 3 Jul 2007 17:55:56 -0000       1.41
@@ -164,7 +164,7 @@
 {
    AButtonState state;
 
-   if (!mEnabled && !mToggle)
+   if (!mEnabled && (!mToggle || !mButtonIsDown))
       return AButtonDis;
 
    if (mCursorIsInWindow) {
@@ -260,7 +260,7 @@
 
    //If the mouse button is released, the following stuff happens
    if (mEnabled) {
-      if (event.ButtonUp()) {
+      if (event.ButtonUp() && mIsClicking) {
          mIsClicking = false;
 
          if (HasCapture())


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to