summaryrefslogtreecommitdiff
path: root/native
Commit message (Collapse)AuthorAgeFilesLines
...
* 2007-05-08 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-05-081-3/+100
| | | | | * native/jni/gtk-peer/gtkpeer.c: Added support for 64-bit architectures.
* 2007-04-25 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-2545-829/+1001
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-04-18 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-181-1/+1
| | | | | | | | | | | | | | | | | | * 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.
* 2007-04-18 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-181-1/+0
| | | | | | | | | | | * 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.
* 2007-04-17 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-04-173-3/+24
| | | | | | | | * 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.
* 2007-04-16 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-161-1/+1
| | | | | * native/plugin/Makefile.am (libgcjwebplugin_la_LDFLAGS): Added AM_LDFLAGS for automake 1.10.
* 2007-04-15 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-151-1/+1
| | | | | * native/jni/java-lang/Makefile.am (libjavalang_la_LIBADD): Fix portability warnings from automake 1.10.
* 2007-04-15 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-151-2/+0
| | | | * native/target/.cvsignore: Removed.
* 2007-04-15 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-152-4/+0
| | | | | * native/target/Linux/.cvsignore, * native/target/generic/.cvsignore: Removed.
* 2007-04-12 Francis Kung <fkung@redhat.com>Francis Kung2007-04-121-3/+3
| | | | | | | | 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.
* 2007-04-12 Christian Thalinger <twisti@complang.tuwien.ac.at>gbenson-calendar-branchpointChristian Thalinger2007-04-122-1/+14
| | | | | | | | * 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.
* 2007-04-12 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2007-04-121-0/+9
| | | | | | | | * 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.
* 2007-04-11 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2007-04-111-2/+2
| | | | | * native/jni/java-nio/javanio.c: Include fcntl.h instead of sys/fcntl.h.
* 2007-04-11 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2007-04-111-0/+4
| | | | | * native/jni/native-lib/cpproc.c (cpproc_forkAndExec): Fixed warning on some compilers, e.g. MIPSpro.
* 2007-04-11 Francis Kung <fkung@redhat.com>Francis Kung2007-04-112-14/+16
| | | | | | | | | * 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.
* * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.cMark Wielaard2007-04-101-1/+2
| | | | | (Java_gnu_java_awt_peer_gtk_ComponentGraphics_initFromVolatile): Destroy surface after it is used to create a cairo context.
* 2007-04-09 Francis Kung <fkung@redhat.com>Francis Kung2007-04-091-28/+1
| | | | | | | | | | | | 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.
* 2007-04-05 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2007-04-051-0/+18
| | | | | | | PR classpath/22800: * native/jni/java-lang/java_lang_VMDouble.c (doubleToLongBits) (doubleToRawLongBits, longBitsToDouble): Swap the byte ordering for little-endian arms without VFP.
* 2007-04-05 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2007-04-051-2/+5
| | | | | | | * native/jni/java-net/java_net_VMNetworkInterface.c [HAVE_IFADDRS_H && HAVE_GETIFADDRS] (free_netif_list): Added #ifdef. (getVMInterfaces): Added UNUSED argument attribute.
* 2007-04-05 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2007-04-052-22/+36
| | | | | | | | | | | * 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.
* * autogen.sh: Recognize automake 1.10.Mark Wielaard2007-04-056-6/+6
| | | | | | | | | | * 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.
* * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.cMark Wielaard2007-04-041-1/+4
| | | | | | | | (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.
* 2007-04-04 Francis Kung <fkung@redhat.com>Francis Kung2007-04-041-1/+9
| | | | | | | | | | | | | | | * 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.
* 2007-04-04 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-041-4/+4
| | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c (init_glib_threads): Create global reference on lock object.
* 2007-04-03 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-033-0/+6
| | | | | | * native/target/.cvsignore, * native/target/Linux/.cvsignore, * native/target/generic/.cvsignore: Some new ignores.
* 2007-04-03 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-035-2718/+3
| | | | | | | | | | | | | * 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.
* 2007-04-03 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-031-9/+47
| | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-04-02 Francis Kung <fkung@redhat.com>Francis Kung2007-04-021-0/+13
| | | | | | | | | | | | | * 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.
* 2007-04-02 Francis Kung <fkung@redhat.com>Francis Kung2007-04-024-31/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-03-29 Francis Kung <fkung@redhat.com>Francis Kung2007-03-291-34/+0
| | | | | * 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-nio/Makefile.am (LIBADD): Add libclasspathnative.Mark Wielaard2007-03-291-0/+1
|
* PR classpath/31276:Tom Tromey2007-03-281-2/+2
| | | | | * native/jni/java-lang/java_lang_VMDouble.c (parseDoubleFromChars): Use %p, not %i.
* * native/jni/java-nio/Makefile.am (LIBADD): Don't addMark Wielaard2007-03-282-5/+2
| | | | | | libclasspathnative. * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_open): Don't set and reset umask.
* 2007-03-27 Francis Kung <fkung@redhat.com>Francis Kung2007-03-271-0/+34
| | | | | | * 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.
* 2007-03-16 Francis Kung <fkung@redhat.com>Francis Kung2007-03-161-85/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-02-26 Francis Kung <fkung@redhat.com>Francis Kung2007-02-261-1/+2
| | | | | | * 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.
* 2007-02-23 Francis Kung <fkung@redhat.com>Francis Kung2007-02-231-2/+0
| | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c (Java_gnu_java_awt_peer_gtk_CairoSurface_create): Remove debug line.
* 2007-02-21 Francis Kung <fkung@redhat.com>Francis Kung2007-02-211-106/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-02-16 Francis Kung <fkung@redhat.com>Francis Kung2007-02-161-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-02-09 Mario Torre <neugens@limasoftware.net>Mario Torre2007-02-093-0/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-01-25 Ito Kazumitsu <kaz@maczuka.gcd.org>Ito Kazumitsu2007-01-282-0/+24
| | | | | | | | * 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.
* 2007-01-20 Ito Kazumitsu <kaz@maczuka.gcd.org>Ito Kazumitsu2007-01-201-10/+37
| | | | | | | | 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().
* 2007-01-07 Ito Kazumitsu <kaz@maczuka.gcd.org>Ito Kazumitsu2007-01-071-0/+2
| | | | | Fixes bug #30377 * native/jni/native-lib/cpnet.h: Add some include files.
* 2007-01-03 Cameron McCormack <cam@mcc.id.au>Mark Wielaard2007-01-031-1/+54
| | | | | | | | | | | | | 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.
* 2006-12-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-262-1/+63
| | | | | | | | | | | | | | | | | | | | | * 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.
* 2006-12-15 Francis Kung <fkung@redhat.com>Francis Kung2006-12-151-0/+14
| | | | | | | | | | | | | | | | * 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.
* * native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd):David Daney2006-12-091-2/+1
| | | | Fix comment.
* * native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd):David Daney2006-12-081-5/+57
| | | | | | | | | | 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.
* 2006-12-06 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2006-12-063-11/+11
| | | | | | | | | | | | | * 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.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-041-2/+9
| | | | | * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_connect): Retry on EINTR.