[java-atk-wrapper] dispatch radio, push toggle button events
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] dispatch radio, push toggle button events
- Date: Sun, 15 Feb 2015 18:33:06 +0000 (UTC)
commit 67f79128dd349edba10d718d8e286f7e24317a3b
Author: Magdalen Berns <m berns thismagpie com>
Date: Sun Feb 15 18:31:26 2015 +0000
dispatch radio, push toggle button events
If parent is menu these events weren't getting dispatched.
Dispatching these events when parent is menu is
preferable.
wrapper/org/GNOME/Accessibility/AtkWrapper.java.in | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
index 3f0f9ec..a526d95 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
@@ -1,6 +1,7 @@
/*
* Java ATK Wrapper for GNOME
* Copyright (C) 2009 Sun Microsystems Inc.
+ * Copyright (C) 2015 Magdalen Berns <m berns thismagpie com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -463,7 +464,9 @@ public class AtkWrapper {
} else if (parent_role != null &&
(parent_role ==
javax.accessibility.AccessibleRole.MENU &&
(role ==
javax.accessibility.AccessibleRole.CHECK_BOX ||
- role ==
javax.accessibility.AccessibleRole.RADIO_BUTTON))) {
+ role ==
javax.accessibility.AccessibleRole.RADIO_BUTTON ||
+ role ==
javax.accessibility.AccessibleRole.PUSH_BUTTON ||
+ role ==
javax.accessibility.AccessibleRole.TOGGLE_BUTTON))) {
dispatchFocusEvent(o);
}
}
@@ -505,7 +508,11 @@ public class AtkWrapper {
public static void registerPropertyChangeListener(AccessibleContext ac) {
if (ac != null) {
+ try {
ac.addPropertyChangeListener(propertyChangeListener);
+ } catch (Exception e){
+ e.printStackTrace();
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]