mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
--- a/src/java.desktop/share/classes/javax/swing/UIManager.java
|
|
+++ b/src/java.desktop/share/classes/javax/swing/UIManager.java
|
|
@@ -607,11 +607,9 @@
|
|
if (osType == OSInfo.OSType.WINDOWS) {
|
|
return "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
|
|
} else {
|
|
- String desktop = AccessController.doPrivileged(new GetPropertyAction("sun.desktop"));
|
|
Toolkit toolkit = Toolkit.getDefaultToolkit();
|
|
- if ("gnome".equals(desktop) &&
|
|
- toolkit instanceof SunToolkit &&
|
|
- ((SunToolkit) toolkit).isNativeGTKAvailable()) {
|
|
+ if (toolkit instanceof SunToolkit &&
|
|
+ ((SunToolkit) toolkit).isNativeGTKAvailable()) {
|
|
// May be set on Linux and Solaris boxs.
|
|
return "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
|
|
}
|
|
@@ -1341,7 +1339,7 @@
|
|
lafName = (String) lafData.remove("defaultlaf");
|
|
}
|
|
if (lafName == null) {
|
|
- lafName = getCrossPlatformLookAndFeelClassName();
|
|
+ lafName = getSystemLookAndFeelClassName();
|
|
}
|
|
lafName = swingProps.getProperty(defaultLAFKey, lafName);
|