[java-atk-wrapper] AtkWrapper print exception stack traces
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] AtkWrapper print exception stack traces
- Date: Sat, 17 Jan 2015 11:01:07 +0000 (UTC)
commit 6e7a34451a337225d182133c0bd63a6e3cdab06b
Author: Magdalen Berns <m berns thismagpie com>
Date: Sat Jan 17 10:57:34 2015 +0000
AtkWrapper print exception stack traces
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=743080
wrapper/org/GNOME/Accessibility/AtkWrapper.java.in | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
index bb9ca47..3f0f9ec 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
@@ -27,6 +27,7 @@ import javax.accessibility.*;
import java.awt.Toolkit;
public class AtkWrapper {
+ public native void AtkWrapper();
static boolean accessibilityEnabled = false;
static {
try {
@@ -48,6 +49,7 @@ public class AtkWrapper {
}
} catch (Exception e) {
e.printStackTrace();
+ e.getCause();
}
}
@@ -262,7 +264,9 @@ public class AtkWrapper {
}
focusNotify(ctx);
- } catch (Exception e) {}
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
}
final Toolkit toolkit = Toolkit.getDefaultToolkit();
@@ -548,9 +552,9 @@ public class AtkWrapper {
public void dispatchEvent (AWTEvent e) {
if (e instanceof KeyEvent) {
if (e.getID() == KeyEvent.KEY_PRESSED) {
- boolean isComsumed =
+ boolean isConsumed =
AtkWrapper.dispatchKeyEvent( new
AtkKeyEvent((KeyEvent)e) );
- if (isComsumed) {
+ if (isConsumed) {
previousPressConsumed = true;
return;
}
@@ -559,7 +563,7 @@ public class AtkWrapper {
return;
}
} else if (e.getID() == KeyEvent.KEY_RELEASED) {
- boolean isConsumed =
+ boolean isConsumed =
AtkWrapper.dispatchKeyEvent( new
AtkKeyEvent((KeyEvent)e) );
previousPressConsumed = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]