Support for GTK 2 & 3 now in JFX
Erik De Rijcke
derijcke.erik at gmail.com
Mon May 16 12:15:37 UTC 2016
I ran into several issues, however I'm not sure they are related to gtk3
first of all it seems there is a dependency on: gsettings-desktop-schemas.
I'm not sure how desirable this is (I did not have it installed, installing
it fixed the error but I can image people not wanting to install it?)
Second, and this seems unrelated to gtk(3?), the screen initialization
fails (test was done using gentoo linux on virtualbox with windows 7 as
host):
Exception in thread "JavaFX Application Thread"
java.lang.IllegalArgumentException: Both width and height must be >= 0
at javafx.geometry.Rectangle2D.<init>(Rectangle2D.java:104)
at javafx.stage.Screen.nativeToScreen(Screen.java:152)
at javafx.stage.Screen.updateConfiguration(Screen.java:88)
at javafx.stage.Screen.checkDirty(Screen.java:82)
at javafx.stage.Screen.getPrimary(Screen.java:185)
at
com.sun.javafx.tk.quantum.QuantumToolkit.initSceneGraph(QuantumToolkit.java:298)
at
com.sun.javafx.tk.quantum.QuantumToolkit.runToolkit(QuantumToolkit.java:340)
at
com.sun.javafx.tk.quantum.QuantumToolkit.lambda$startup$10(QuantumToolkit.java:257)
at com.sun.glass.ui.Application.lambda$run$1(Application.java:155)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at
com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$7(GtkApplication.java:194)
at java.lang.Thread.run(Thread.java:804)
Nearly all values seem to be -2147483648
I used openjdk9 109 as per instructions of the wiki, and the latest javafx
dev.
On Mon, May 9, 2016 at 8:56 PM, Jim Graham <james.graham at oracle.com> wrote:
> Should we integrate that into prism.verbose output?
>
> ...jim
>
>
> On 5/9/16 6:18 AM, David Hill wrote:
>
>>
>> I added a new feature Friday and would like some help testing it.
>>
>> This new feature (8087516: Conditional support for GTK 3 on Linux) allows
>> us to use either GTK v2 or 3 with JavaFX.
>>
>> The default has not changed - we will use gtk 2 by preference.
>>
>> The help I need is for anyone doing testing on Linux with the current
>> tree - like todays sanity testing. Adding
>>
>> -Djdk.gtk.verbose=true
>>
>> should output the version detected and used. I would appreciate a paste
>> of that along with the OS version.
>>
>> -Djdk.gtk.version=3
>>
>> toggles the preferred version to GTK 3. Testing using that toggled would
>> also be appreciated, along with a note to me
>> with the OS version.
>>
>> thanks!
>>
>>
More information about the openjfx-dev
mailing list