[java-atk-wrapper] Fix bug616693: emit both the visible and showing events for combo box Signed-off-by: Leon Fan <leon.



commit 5b0b399d0b7c7c6f8936d7fe3fcddc2de58c2972
Author: Leon Fan <leon fan oracle com>
Date:   Mon Jun 13 13:31:19 2011 +0800

    Fix bug616693: emit both the visible and showing events for combo box
    Signed-off-by: Leon Fan <leon fan oracle com>

 wrapper/org/GNOME/Accessibility/AtkWrapper.java.in |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
index e8c8483..5fa4ecb 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
@@ -485,7 +485,15 @@ public class AtkWrapper {
 					value = false;
 				}
 
+                                if(parent instanceof javax.swing.JComboBox && oldValue == javax.accessibility.AccessibleState.VISIBLE) {
+                                        objectStateChange(ac, AccessibleState.SHOWING, value);
+                                }
+
 				objectStateChange(ac, state, value);
+
+				if(parent instanceof javax.swing.JComboBox && newValue == javax.accessibility.AccessibleState.VISIBLE && oldValue == null) {
+                                        objectStateChange(ac, AccessibleState.SHOWING, value);
+                                }
 			}
 		}
 	};



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]