< prev index next >

src/solaris/classes/sun/awt/X11/XDesktopPeer.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2013, 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) 2005, 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
*** 23,32 **** --- 23,33 ---- * questions. */ package sun.awt.X11; + import sun.awt.UNIXToolkit; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URI;
*** 55,65 **** private static void initWithLock(){ XToolkit.awtLock(); try { if (!initExecuted) { ! nativeLibraryLoaded = init(); } } finally { initExecuted = true; XToolkit.awtUnlock(); } --- 56,67 ---- private static void initWithLock(){ XToolkit.awtLock(); try { if (!initExecuted) { ! nativeLibraryLoaded = init(UNIXToolkit.getEnabledGtkVersion() ! .getNumber(), UNIXToolkit.isGtkVerbose()); } } finally { initExecuted = true; XToolkit.awtUnlock(); }
*** 121,127 **** throw new IOException("Failed to show URI:" + uri); } } private native boolean gnome_url_show(byte[] url); ! private static native boolean init(); } --- 123,129 ---- throw new IOException("Failed to show URI:" + uri); } } private native boolean gnome_url_show(byte[] url); ! private static native boolean init(int gtkVersion, boolean verbose); }
< prev index next >