| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* native/jni/gtk-peer/gtkpeer.c:
Added support for 64-bit architectures.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkFontPeer.java,
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
* gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java,
* gnu/java/awt/peer/gtk/GtkGenericPeer.java,
* gnu/java/awt/peer/gtk/GtkToolkit.java:
Added fields to hold the native state. Added class initialization
things to fetch the JNI field IDs.
* include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h,
* include/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.h,
* include/gnu_java_awt_peer_gtk_GtkGenericPeer.h,
* include/gnu_java_awt_peer_gtk_GtkToolkit.h:
Added / changed class init methods for field ID initialization.
* native/jni/classpath/Makefile.am: Removed native_state stuff.
* native/jni/classpath/native_state.c,
* native/jni/classpath/native_state.h: Removed.
* native/jni/gconf-peer/Makefile.am: Removed native_state stuff.
* native/jni/gtk-peer/Makefile.am: Removed native_state stuff.
* native/jni/gtk-peer/cairographics2d.h,
* native/jni/gtk-peer/gdkdisplay.h,
* native/jni/gtk-peer/gdkfont.h,
* native/jni/gtk-peer/GtkDragSourceContextPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollbarPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,
* native/jni/gtk-peer/gtk_jawt.c:
Removed native state stuff and replaced that with an approach
to store the native state of an object directly in that object.
* native/jni/gtk-peer/gtkpeer.c: New file. Implements the new native
state management.
* native/jni/gtk-peer/gtkpeer.h: Remove NSA stuff and added
prototypes for new native state handling.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* include/GtkDragSourceContextPeer.h: Removed, renamed to ..
* include/gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer.h:
New file.
* native/jni/gtk-peer/GtkDragSourceContextPeer.c: Include
gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer.h.
* include/Makefile.am (GTKPEER_H_FILES): Renamed
GtkDragSourceContextPeer.h to
gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer.h
per current convention. Use portable construct to create
gtk and libxmlj peer headers. Depend on the java source code,
rather then the class files in order to avoid spurious
regeneration.
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/xmlj/xmlj_xpath.c: Don't include
gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h.
* include/gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h:
Removed empty header file.
* include/Makefile.am (XMLJ_H_FILES): Removed
gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h.
|
|
|
|
|
|
|
|
| |
* native/jni/java-net/local.c:
Fix import of FIONREAD.
* native/jni/java-nio/gnu_java_nio_VMChannel.c,
* native/jni/native-lib/cpnet.c:
Likewise.
|
|
|
|
|
| |
* native/plugin/Makefile.am (libgcjwebplugin_la_LDFLAGS):
Added AM_LDFLAGS for automake 1.10.
|
|
|
|
|
| |
* native/jni/java-lang/Makefile.am (libjavalang_la_LIBADD):
Fix portability warnings from automake 1.10.
|
|
|
|
| |
* native/target/.cvsignore: Removed.
|
|
|
|
|
| |
* native/target/Linux/.cvsignore,
* native/target/generic/.cvsignore: Removed.
|
|
|
|
|
|
|
|
| |
PR 31539
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(ft2_map): New static variable.
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_initStaticState): Set up ft2_map.
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Use cached ft2_map.
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c
(clipboard_get_func): Call DeleteLocalRef.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkSelection.c
(clipboard_targets_received): Likewise.
(clipboard_uris_received): Likewise.
|
|
|
|
|
|
|
|
| |
* LICENSE: Added m4/ax_func_which_gethostbyname_r.m4 license.
* configure.ac: Added AX_FUNC_WHICH_GETHOSTBYNAME_R check.
* m4/ax_func_which_gethostbyname_r.m4: New file.
* native/jni/native-lib/cpnet.c (cpnet_getHostByName): Check for
different number of arguments of gethostbyname_r.
|
|
|
|
|
| |
* native/jni/java-nio/javanio.c: Include fcntl.h instead of
sys/fcntl.h.
|
|
|
|
|
| |
* native/jni/native-lib/cpproc.c (cpproc_forkAndExec): Fixed
warning on some compilers, e.g. MIPSpro.
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
(Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getGlyphs): Avoid unneeded
object reference.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_getFontMetrics): Unlock font.
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Remove redundant checks.
|
|
|
|
|
| |
(Java_gnu_java_awt_peer_gtk_ComponentGraphics_initFromVolatile):
Destroy surface after it is used to create a cairo context.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 31311
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(dispose): Removed method.
(disposeSurface): Removed method.
* gnu_java_awt_peer_gtk_ComponentGraphics.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c
(Java_gnu_java_awt_peer_gtk_ComponentGraphics_disposeSurface): Removed.
(Java_gnu_java_awt_peer_gtk_ComponentGraphics_initState): Destroy surface
after it is used to create a cairo context.
|
|
|
|
|
|
|
| |
PR classpath/22800:
* native/jni/java-lang/java_lang_VMDouble.c (doubleToLongBits)
(doubleToRawLongBits, longBitsToDouble): Swap the byte
ordering for little-endian arms without VFP.
|
|
|
|
|
|
|
| |
* native/jni/java-net/java_net_VMNetworkInterface.c
[HAVE_IFADDRS_H && HAVE_GETIFADDRS] (free_netif_list): Added
#ifdef.
(getVMInterfaces): Added UNUSED argument attribute.
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c,
native/jni/java-nio/gnu_java_nio_charset_iconv_IconvEncoder.c
[HAVE_ICONV] (createRawData, getData, infid, outfid): Added
#ifdef.
(openIconv): Added UNUSED argument attribute, so we can build with
-Werror.
(decode): Likewise.
(closeIconv): Likewise.
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac (AM_INIT_AUTOMAKE): Add -Wno-portability.
* native/jawt/Makefile.am (libjawt_la_LDFLAGS): Add AM_LDFLAGS.
* native/jni/gconf-peer/Makefile.am (libgconfpeer_la_LDFLAGS): Likewise.
* native/jni/gtk-peer/Makefile.am (libgtkpeer_la_LDFLAGS): Likewise.
* native/jni/midi-alsa/Makefile.am (libgjsmalsa_la_LDFLAGS): Likewise.
* native/jni/midi-dssi/Makefile.am (libgjsmdssi_la_LDFLAGS): Likewise.
* native/jni/qt-peer/Makefile.am (libqtpeer_la_LDFLAGS): Likewise.
|
|
|
|
|
|
|
|
| |
(cp_gtk_image_get_pixbuf): Return NULL when pointer is NULL.
* gnu/java/awt/peer/gtk/GtkImage.java (setImage): Set loaded and
call deliver() after pixels have been set.
* gnu/java/awt/peer/gtk/GtkFramePeer.java (setIconImage): Only
set icon when image has been properly loaded.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(drawCairoSurface): Made protected.
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(cairoDrawGlyphVector): Removed method.
(cairoSetFont): Removed method.
(disposeNative): Removed method.
(drawCairoSurface): New method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawGlyphVector): Added
locking.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSetFont): Added locking.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_disposeNative): Added locking.
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(init_glib_threads): Create global reference on lock object.
|
|
|
|
|
|
| |
* native/target/.cvsignore,
* native/target/Linux/.cvsignore,
* native/target/generic/.cvsignore: Some new ignores.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GThreadMutex.java,
* gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
* include/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
* native/jni/gtk-peer/gthread-jni.c,
* native/jni/gtk-peer/gthread-jni.h: Removed.
* native/jni/gtk-peer/Makefile.am: Removed obsolete entries
for removed files.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
Removed unused bits from gthread-jni.c.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(global_lock): New global variable that holds the object reference
to the global GTK lock.
(init_glib_threads): Add lock argument. Use
gdk_threads_set_lock_functions to replace GTK's locking function
with two callbacks that allow reentrant locking, based on
JNI's MonitorEnter() and MonitorExit().
(jni_lock_cb): New callback function for GTK locking.
(jni_unlock_cb): New callback function for GTK unlocking.
(Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkInit): Add lock argument.
Call init_glib_threads() with lock object.
* include/gnu_java_awt_peer_gtk_GtkToolkit.h
Regenerated.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(GTK_LOCK): New static field. This is used as the global lock for
GTK.
(gtkInit): Add lock parameter.
(static_init): Initialize global lock and call gtkInit() with
that lock.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(fontSet): Initialize to null.
(FreetypeGlyphVector(Font, int[], FontRenderContext)): Populate fontSet
array with default font if needed.
(FreetypeGlyphVector(FreetypeGlyphVector)): Clone all fields.
(getNativeFontPointer): New native method.
* include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
(Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getNativeFontPointer):
New function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(cairoDrawGlyphVector): Added parameter.
(drawGlyphVector): Retrieve and pass fontset parameter.
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(cairoDrawGlyphVector): Added parameter.
(lock): Removed unnecessary cast.
(unlock): Removed unnecessary cast and explicitly set to ONE variable.
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(fontSet): New field.
(dispose): New native method.
(finalize): New method.
(getGlyphFonts): New method.
(getGlyphOutline): Pass fontSet parameter to native method.
(getGlyphOutlineNative): Added parameter.
(getGlyphs): Pass extra parameters to native method.
(getGlyphsNative): Added parameters.
(getKerning): Added fontSet parameter.
(getMetricsNative): Added fontSet parameter.
(performDefaultLayout): Only check kerning if glyphs use the same font.
(setupGlyphMetrics): Pass extra parameters to native methods.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
* include/gnu_java_awt_peer_gtk_FreetypGlyphVector.h: Regenerated.
* native/jni/gtk-peer/gdkfont.h: Enable pango engine.
(peerfont): Add variable for fontset.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawGlyphVector): Accept
array of font pointers to use when drawing glyphs.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
(getFontSet): New function.
(Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_dispose): New function.
(Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getGlyphOutlineNative):
Added and use new fontSet parameter.
(Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getGlyphs): Use pango
to retrieve glyphs and estimate font, if the current font does not contain
a requested glyph.
(Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getKerning): Added and use
new fontSet parameter.
(Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getMetricsNative): Added
and use new fontSet parameter.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_dispose): Free fontset.
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Load fontset.
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkInit): Revert last patch.
|
| |
|
|
|
|
|
| |
* native/jni/java-lang/java_lang_VMDouble.c
(parseDoubleFromChars): Use %p, not %i.
|
|
|
|
|
|
| |
libclasspathnative.
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(Java_gnu_java_nio_VMChannel_open): Don't set and reset umask.
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkInit): Prevent loading of
accessibility modules as temporary workaround for Gnome bug.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(cairoArc): Make protected rather than private so it can be over-ridden.
(cairoClip): Likewise.
(cairoClosePath): Likewise.
(cairoCurveTo): Likewise.
(cairoDrawGlyphVector): Likewise.
(cairoFill): Likewise.
(cairoLineTo): Likewise.
(cairoMoveTo): Likewise.
(cairoNewPath): Likewise.
(cairoRectangle): Likewise.
(cairoResetClip): Likewise.
(cairoRestore): Likewise.
(cairoSave): Likewise.
(cairoScale): Likewise.
(cairoSetAntialias): Likewise.
(cairoSetDash): Likewise.
(cairoSetFillRule): Likewise.
(cairoSetFont): Likewise.
(cairoSetLine): Likewise.
(cairoSetMatrix): Likewise.
(cairoSetOperator): Likewise.
(cairoSetRGBAColor): Likewise.
(cairoStroke): Likewise.
(drawPixels): Likewise.
(init): Likewise.
(setGradient): Likewise.
(setPaintPixels): Likewise.
(cairoDrawLine): Removed.
(cairoDrawRect): Removed.
(cairoFillRect): Removed.
(cairoPreserveClip): Removed.
(cairoRelCurveTo): Removed.
(cairoRelLineTo): Removed.
(cairoRelMoveTo): Removed.
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(cairoArc): New method wrapping superclass method in locks.
(cairoClip): Likewise.
(cairoClosePath): Likewise.
(cairoCurveTo): Likewise.
(cairoDrawGlyphVector): Likewise.
(cairoFill): Likewise.
(cairoLineTo): Likewise.
(cairoMoveTo): Likewise.
(cairoNewPath): Likewise.
(cairoRectangle): Likewise.
(cairoResetClip): Likewise.
(cairoRestore): Likewise.
(cairoSave): Likewise.
(cairoScale): Likewise.
(cairoSetAntialias): Likewise.
(cairoSetDash): Likewise.
(cairoSetFillRule): Likewise.
(cairoSetFont): Likewise.
(cairoSetLine): Likewise.
(cairoSetMatrix): Likewise.
(cairoSetOperator): Likewise.
(cairoSetRGBAColor): Likewise.
(cairoStroke): Likewise.
(disposeNative): Likewise.
(drawPixels): Likewise.
(init): Likewise.
(setGradient): Likewise.
(setPaintPixels): Likewise.
(draw): Do not lock, as locking is now done in the wrapped native methods.
(drawComposite): Likewise.
(drawGlyphVector): Likewise.
(drawImage): Likewise.
(drawRenderedImage): Likewise.
(fill): Likewise.
(setClip): Removed.
(lock): Added documentation.
(unlock): Added documentation.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated.
* include/gnu_java_awt_peer_gtk_CairoSurface.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawLine): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawRect): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoFillRect): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoPreserveClip): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelCurveTo): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelLineTo): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelMoveTo): Removed.
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Stop using deprecated
function for creating new font map.
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c
(Java_gnu_java_awt_peer_gtk_CairoSurface_create): Remove debug line.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphcs.java
(constructor): Add pre-multiplied colour model to types available for
optimization.
(updateBufferedImage): Change surface.getPixels() call to surface.getData().
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(drawImage): Add checks before using CairoSurface optimization.
* gnu/java/awt/peer/gtk/CairoSurface.java
(bufferPointer): Removed field.
(sharedBuffer): New field.
(CairoSurface(GtkImage)): Copy array rather than using setPixels() call.
(CairoSurface(int,int,int)): Use getData() convenience method.
(CairoSurface(SampleModel,CairoSurface,Rectangle,Point)): Remove reference
to deleted bufferPointer field.
(copyAreaNative): Update documentation, remove reference to bufferPointer.
(copyAreaNative2): Remove reference to deleted bufferPointer field.
(destroy): Remove reference to deleted bufferPointer field.
(dispose): Updated to reflect new method signature for destroy().
(drawSurface): Added documentation.
(getData): New convience method.
(getFlippedBuffer): Removed method parameters.
(getGtkImage): Updated to reflect new method signature.
(getPixels): Removed method.
(nativeGetElem): Removed method.
(netiveGetPixels): Removed method.
(nativeSetElem): Removed method.
(nativeSetPixels): Removed method.
(setPixels): Removed method.
(syncJavaToNative): New method.
(syncNativeToJava): New method.
* gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java
(draw): Sync buffers if necessary.
(drawGlyphVector): Likewise.
(drawImage): Likewise.
(drawRenderedImage): Likewise,
(fill): Likewise.
* include/gnu_java_awt_peer_gtk_CairoSurface.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c
(Java_gnu_java_awt_peer_gtk_CairoSurface_copyAreaNative2): Use pointer to
surface rather than pointer to buffer.
(Java_gnu_java_awt_peer_gtk_CairoSurface_create): Provide fall-back for
copied arrays.
(Java_gnu_java_awt_peer_gtk_CairoSurface_destroy): Handle copied arrays.
(Java_gnu_java_awt_peer_gtk_CairoSurface_getFlippedBuffer): Retrieve
information on size using JNI calls.
(Java_gnu_java_awt_peer_gtk_CairoSurface_getElem): Removed.
(Java_gnu_java_awt_peer_gtk_CairoSurface_getPixels): Removed.
(Java_gnu_java_awt_peer_gtk_CairoSurface_setElem): Removed.
(Java_gnu_java_awt_peer_gtk_CairoSurface_setPixels): Removed.
(Java_gnu_java_awt_peer_gtk_CairoSurface_syncJavaToNative): New function.
(Java_gnu_java_awt_peer_gtk_CairoSurface_syncNativeToJava): New function.
(BUFFER): Removed constant.
(SHARED): New constant.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/ClasspathGraphicsEnvironment.java: New file.
* gnu/java/awt/peer/gtk/CairoSurface.java
(CairoDataBuffer): Removed inner class.
(CairoSurface(int,int,int,int)): New constructor.
(CairoSurface(int,int)): Delegate to new constructor.
(CairoSurface(SampleModel,CairoSurface,Rectangle,Point)): New constructor
for creating child rasters.
(create): Added int[] parameter.
(createChild): New method.
(createCompatibleWritableRaster): New methods.
(createTranslatedChild): New method.
(createWritableChild): New method.
(createWritableTranslatedChild): New method.
(destroy): Added int[] parameter.
(dispose): Only free native resources if this Surface has no parents.
(isCompatibleColorModel): New method.
(isCompatibleSampleModel): New method.
* gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java
(draw): Set transform, smarter bounds generation.
(drawComposite): Improved clipping.
(drawImage): Fixed bounds translation.
(drawRenderedImage): Set transform in buffer.
(fill): Set transform in buffer.
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
(createRaster): New method.
* java/awt/image/BufferedImage.java
(BufferedImage(int,int,int)): Use optimized raster if possible.
* include/gnu_java_awt_peer_gtk_CairoSurface.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c
(Java_gnu_java_awt_peer_gtk_CairoSurface_create): Share data buffer between
Cairo and Java.
(Java_gnu_java_awt_peer_gtk_CairoSurface_destroy): Free data array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* vm/reference/java/io/VMFile.java:
(canExecute): new 1.6 native method.
(setReadable): likewise.
(setWritable): likewise.
(setExecutable): likewise.
* java/io/File.java: added import for gnu.classpath.NotImplementedException.
(setReadOnly): new 1.6 method.
(canExecute): likewise.
(setReadable): likewise.
(setWritable): likewise.
(setExecutable): likewise.
(getUsableSpace): added stub for new 1.6 method.
(getFreeSpace): likewise.
(getTotalSpace): likewise.
(checkExec): new private method to support new 1.6 additions.
* native/jni/java-io/java_io_VMFile.c:
set_file_permissions: new helper function.
Java_java_io_VMFile_setReadable: new native method to bakcup 1.6 methods
in VMFile.java.
Java_java_io_VMFile_setWritable: likewise.
Java_java_io_VMFile_setExecutable: likewise.
Java_java_io_VMFile_canExecute: likewise.
* native/jni/native-lib/cpio.h: added new flags: CPFILE_FLAG_EXEC,
CPFILE_FLAG_USR and CPFILE_FLAG_OFF.
cpio_chmod: new function declaration.
cpio_checkAccess: likewise.
* native/jni/native-lib/cpio.c:
cpio_chmod: new function definition.
cpio_checkAccess: likewise.
|
|
|
|
|
|
|
|
| |
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(Java_gnu_java_nio_VMChannel_accept): Throw SocketTimeoutException
in case of timeout.
* native/jni/java-nio/javanio.c(cpnio_accept): Call select() if
SO_RCVTIMEO is set.
|
|
|
|
|
|
|
|
| |
Fixes bug #30488
* native/jni/native-lib/cpnet.c(SOCKET_NOSIGNAL): Deleted,
(setsockopt_NOSIGPIPE): New function,
(cpnet_send): Corrected the option setting to send(),
(cpnet_sendTo): Corrected the option setting to sendto().
|
|
|
|
|
| |
Fixes bug #30377
* native/jni/native-lib/cpnet.h: Add some include files.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes bug #29246
* java/awt/Toolkit.java (getLockingKeyState): Use AWTUtilities
isValidKey method. Throw UnsupportedOperationException on a valid
key (for which no locking state can be given).
* gnu/java/awt/AWTUtilities.java (isValidKey): New method.
* gnu/java/awt/peer/gtk/GtkToolkit.java (getLockingKeyState): New
method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(Java_gnu_java_awt_peer_gtk_GtkToolkit_getLockState): New method.
* include/gnu_java_awt_peer_gtk_GtkToolkit.h: Regenerated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* NEWS: Mention 1.6 support for java.lang.management
* configure.ac: Check for getloadavg.
* examples/gnu/classpath/examples/management/TestOS.java:
Print system load average.
* gnu/java/lang/management/OperatingSystemMXBeanImpl.java:
(getSystemLoadAverage()): Implemented.
* include/Makefile.am: Add new header.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h:
Regenerated.
* include/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.h:
Generated.
* java/lang/management/OperatingSystemMXBean.java:
(getSystemLoadAverage()): Implemented.
* native/jni/java-lang/Makefile.am: Add new native code.
* native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c:
New file.
* vm/reference/gnu/java/lang/management/VMOperatingSystemMXBeanImpl.java:
Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(antialias): New private field.
(ignoreAA): New private field.
(cairoSetAntialias): New native method.
(draw): Check anti-alias setting.
(drawGlyphVector): Likewise.
(drawString): Likewise.
(fill): Likewise.
(setAntialias): New private method.
(setup): Set default antialias value.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c:
(gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSetAntialias): New method.
|
|
|
|
| |
Fix comment.
|
|
|
|
|
|
|
|
|
|
| |
New method.
(Java_gnu_java_nio_VMChannel_read__ILjava_nio_ByteBuffer_2): Throw
SocketTimeoutException if a blocking socket timesout.
(Java_gnu_java_nio_VMChannel_readScattering): Same.
(Java_gnu_java_nio_VMChannel_read__I): Same.
(Java_gnu_java_nio_VMChannel_connect): Initialize the fd set.
(Java_gnu_java_nio_VMChannel_connect6): Same.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/ScrollPane.java (addNotify): Add a parent panel for any
lightweight component, not just for non-Panel components.
(addImpl): Do not call doLayout.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(setNativeBounds): Ensure widget parent is a GtkFixed before
calling gtk_fixed_move.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
(setNativeBounds): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(setNativeBounds): Likewise.
|
|
|
|
|
| |
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(Java_gnu_java_nio_VMChannel_connect): Retry on EINTR.
|