< prev index next >
modules/javafx.graphics/src/main/java/com/sun/glass/ui/gtk/GtkApplication.java
Print this page
rev 10880 : 8198654: Switch FX's default GTK version to 3
Reviewed-by:
*** 1,7 ****
/*
! * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 144,154 ****
GtkApplication() {
final int gtkVersion = forcedGtkVersion == 0 ?
AccessController.doPrivileged((PrivilegedAction<Integer>) () -> {
! String v = System.getProperty("jdk.gtk.version","2");
int ret = 0;
if ("3".equals(v) || v.startsWith("3.")) {
ret = 3;
} else if ("2".equals(v) || v.startsWith("2.")) {
ret = 2;
--- 144,154 ----
GtkApplication() {
final int gtkVersion = forcedGtkVersion == 0 ?
AccessController.doPrivileged((PrivilegedAction<Integer>) () -> {
! String v = System.getProperty("jdk.gtk.version","3");
int ret = 0;
if ("3".equals(v) || v.startsWith("3.")) {
ret = 3;
} else if ("2".equals(v) || v.startsWith("2.")) {
ret = 2;
< prev index next >