[java-atk-wrapper] Fixed d.o.o bug 10506 - java webstart applications don't run
- From: Ke Wang <kewang src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Fixed d.o.o bug 10506 - java webstart applications don't run
- Date: Mon, 10 Aug 2009 04:35:22 +0000 (UTC)
commit 4aecdea655197a022556cc27539bfaa90ff63aac
Author: Ke Wang <ke wang sun com>
Date: Mon Aug 10 12:33:36 2009 +0800
Fixed d.o.o bug 10506 - java webstart applications don't run
wrapper/org/GNOME/Accessibility/AtkWrapper.java.in | 20 ++++++--------------
1 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
index 254afb0..7ea48b5 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
@@ -26,21 +26,22 @@ import java.io.*;
import javax.accessibility.*;
public class AtkWrapper {
+ static boolean accessibilityEnabled = false;
static {
try {
Process p = Runtime.getRuntime().exec("@XPROP@ -root");
BufferedReader b = new BufferedReader (
new InputStreamReader (p.getInputStream ()));
String result;
- boolean found = false;
+ accessibilityEnabled = false;
while ((result = b.readLine()) != null) {
if (result.indexOf ("AT_SPI_IOR") >= 0) {
- found = true;
+ accessibilityEnabled = true;
break;
}
}
- if (found) {
+ if (accessibilityEnabled) {
System.loadLibrary("atk-wrapper");
AtkWrapper.initNativeLibrary();
}
@@ -499,17 +500,8 @@ public class AtkWrapper {
}
public AtkWrapper(){
- /*try{
- Process p = Runtime.getRuntime().exec("gconftool-2 -g /desktop/gnome/interface/accessibility");
- BufferedReader b = new BufferedReader(
- new InputStreamReader(p.getInputStream()));
- String result = b.readLine();
- if(result == null || !result.equals("true")){
- return;
- }
- } catch( Exception e ) {
- e.printStackTrace();
- }*/
+ if (!accessibilityEnabled)
+ return;
toolkit.addAWTEventListener(
globalListener,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]