[java-atk-wrapper] Fixed conflict with GTK look and feel
- From: Ke Wang <kewang src gnome org>
- To: svn-commits-list gnome org
- Subject: [java-atk-wrapper] Fixed conflict with GTK look and feel
- Date: Thu, 25 Jun 2009 06:56:29 +0000 (UTC)
commit 6a164964a60d5ab7f914ab896fa50debd65e99a2
Author: Ke Wang <ke wang sun com>
Date: Thu Jun 25 14:33:33 2009 +0800
Fixed conflict with GTK look and feel
wrapper/org/GNOME/Accessibility/AtkWrapper.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java b/wrapper/org/GNOME/Accessibility/AtkWrapper.java
index 3582c81..c6d6408 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java
@@ -30,10 +30,11 @@ public class AtkWrapper {
// Set laf to Cross platform laf because GTK laf will be the default one in some
// environment, but GTK laf will not work well with gtk_main() started.
try {
- String lafClassName = javax.swing.UIManager.getCrossPlatformLookAndFeelClassName();
- if (lafClassName.contains("GTKLookAndFeel")) {
+ String lafClassName = (String)System.getProperty("swing.defaultlaf");
+ if (lafClassName != null
+ && lafClassName.contains("GTKLookAndFeel")) {
javax.swing.UIManager.setLookAndFeel(
- javax.swing.UIManager.getCrossPlatformLookAndFeelClassName());
+ javax.swing.UIManager.getCrossPlatformLookAndFeelClassName());
}
} catch (Exception e) { }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]