[java-atk-wrapper] Wrapper: Fix for window:destroy events
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Wrapper: Fix for window:destroy events
- Date: Thu, 2 Jul 2015 14:20:42 +0000 (UTC)
commit 288ee827963cd35db5a3c574947920aebf2eb1f2
Author: Magdalen Berns <m berns thismagpie com>
Date: Thu Jul 2 15:08:20 2015 +0100
Wrapper: Fix for window:destroy events
This patch allows AtkWrapper.windowClose to be called
when the window is closing.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=751837
wrapper/org/GNOME/Accessibility/AtkWrapper.java.in | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
index 7baf125..4b5574a 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
@@ -171,6 +171,12 @@ public class AtkWrapper {
* @param e A WindowEvent object
*/
public void windowClosing(WindowEvent e) {
+ Object o = e.getSource();
+ if (o instanceof javax.accessibility.Accessible) {
+ boolean isToplevel = isToplevel(o);
+ AccessibleContext ac = ((javax.accessibility.Accessible)o).getAccessibleContext();
+ AtkWrapper.windowClose(ac, isToplevel);
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]