Re: early draft for 8087516: [JavaFX] Conditional support for GTK 3 on Linux

2016-04-24 Thread David Hill
On 4/23/16, 4:22 PM, Tom Schindl wrote: Hi, For FXCanvas it should be doable because you can check if SWT is running with GTK3 using 8< org.eclipse.swt.internal.gtk.OS.GTK3 : boolean 8< This is what e(fx)clipse uses today to cancel loading of FXCanvas because it would core-dump

Re: early draft for 8087516: [JavaFX] Conditional support for GTK 3 on Linux

2016-04-23 Thread Tom Schindl
Hi, For FXCanvas it should be doable because you can check if SWT is running with GTK3 using 8< org.eclipse.swt.internal.gtk.OS.GTK3 : boolean 8< This is what e(fx)clipse uses today to cancel loading of FXCanvas because it would core-dump your application [1]. IIRC this flag is t

Re: early draft for 8087516: [JavaFX] Conditional support for GTK 3 on Linux

2016-04-23 Thread Philip Race
That may be [need to be] ironed out later. We are not certain there is a 100% reliable mechanism for this. Some experiments on the AWT equivalent using dlopen(..) with RTLD_NOLOAD is apparently failing to detect that gtk3 was loaded in the case it was loaded by SWT. An alternative but not very pr

Re: early draft for 8087516: [JavaFX] Conditional support for GTK 3 on Linux

2016-04-23 Thread Tom Schindl
David / Kevin, Do you see chances to detect for the SWT case if we are running with SWT on Gtk3 or Gtk2 and not having to use -Djdk.gtk.version=3 The problem with requiring one to switch by setting the System-Property is that eg if someone want to use FX in the Eclipse IDE he does not control the

early draft for 8087516: [JavaFX] Conditional support for GTK 3 on Linux

2016-04-22 Thread David Hill
Kevin, Phil, anyone else interested. Here is an early draft of [JavaFX] Conditional support for GTK 3 on Linux http://cr.openjdk.java.net/~ddhill/8087516.1/ There are some rough edges left, particularly with the GTK 3 side of shaped windows.