summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 2006-06-07 Gary Benson <gbenson@redhat.com>Gary Benson2006-06-071-0/+1
| | | | | | | | | | | | PR 24895 * native/jni/java-io/java_io_VMFile.c (Java_java_io_VMFile_toCanonicalForm): New method. * configure.ac: Added checks for lstat and readlink. * include/java_io_VMFile.h: Added new method. * vm/reference/java/io/VMFile.java: Use new method. * gnu/java/io/PlatformHelper.java (toCanonicalForm): Removed. * NEWS: Documented the above. * java/io/File.java: Javadoc fix.
* 2006-06-05 Sven de Marothy <sven@physto.se>Sven de Marothy2006-06-073-1/+23
| | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java * include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c New files. * gnu/java/awt/peer/gtk/GdkFontPeer.java (getGlyphVector): Removed native method. (createGlyphVector, getStringBounds): Use new GV class. * include/Makefile.am * native/jni/gtk-peer/Makefile.am Add new files. * include/gnu_java_awt_peer_gtk_GdkFontPeer.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c (getGlyphVector): Removed native method.
* PR 27917Mark Wielaard2006-06-073-3/+4
| | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/CairoSurface.java (finalize): Call dispose. * gnu/java/awt/peer/gtk/ComponentGraphics.java: Override dispose to call disposeSurface. (disposeSurface): New native method. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_disposeNative): Free pattern_pixels. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c (Java_gnu_java_awt_peer_gtk_CairoSurface_drawSurface): Call cairo_pattern_destroy. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c (Java_gnu_java_awt_peer_gtk_ComponentGraphics_disposeSurface): New function to destroy the surface. * include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated. * include/gnu_java_awt_peer_gtk_CairoSurface.h: Likewise. * include/gnu_java_awt_peer_gtk_ComponentGraphics.h: Likewise.
* * include/jni.h (JDK1_1InitArgs): Mark pointer-to-function typesMark Wielaard2006-06-061-3/+3
| | | | with JNICALL.
* * include/jni.h (JDK1_1InitArgs): New struct.Tom Tromey2006-06-061-1/+40
| | | | (JDK1_1AttachArgs): Likewise.
* 2006-06-06 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2006-06-063-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h: Regenerated. * include/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.h: New file. * include/Makefile.am: Added gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice. * gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java: (GdkGraphicsConfiguration): Rewritten. (getColorModel): Rewritten. (getColorModel(int)): Rewritten. (getBounds): Rewritten. (createCompatibleVolatileImage): Implemented. * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java: Added static initializer. (getDefaultScreenDevice): Rewritten. (nativeGetDefaultScreenDevice): New method. (getScreenDevices): Rewritten. (nativeGetScreenDevices): New method. (nativeInitState): New method. * gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java: Entirely rewritten. (X11DisplayMode): New inner class. * native/jni/gtk-peer/Makefile.am: Added gdkdisplay.h and gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c * native/jni/gtk-peer/gdkdisplay.h: New file. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c: (Java_gnu_java_awt_peer_gtk_GdkGraphicsEnvironment_initStaticState): New function. (Java_gnu_java_awt_peer_gtk_GdkGraphicsEnvironment_nativeInitState): New function. (Java_gnu_java_awt_peer_gtk_GdkGraphicsEnvironment _nativeGetScreenDevices): New function. (Java_gnu_java_awt_peer_gtk_GdkGraphicsEnvironment _nativeGetDefaultScreenDevice): New function. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c: New file. * configure.ac: Added check for Xrandr library.
* 2006-06-05 Sven de Marothy <sven@physto.se>Sven de Marothy2006-06-062-1/+3
| | | | | | | | | | | | | * include/gnu_java_awt_peer_gtk_ComponentGraphics.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c * gnu/java/awt/peer/gtk/ComponentGraphics.java (initFromVolatile): New method. * gnu/java/awt/peer/gtk/GtkVolatileImage.java * gnu/java/awt/peer/gtk/VolatileImageGraphics.java Reimplement. * include/gnu_java_awt_peer_gtk_GtkVolatileImage.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c (copyArea, drawVolatileImage): New methods.
* 2006-06-04 Sven de Marothy <sven@physto.se>Sven de Marothy2006-06-041-0/+1
| | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/CairoSurface.java (getFlippedBuffer): New method. (getGtkImage): Renamed method. * gnu/java/awt/peer/gtk/ComponentGraphicsCopy.java * gnu/java/awt/peer/gtk/GtkVolatileImage.java Renamed getSharedImage to getGtkImage. * include/gnu_java_awt_peer_gtk_CairoSurface.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c (getFlippedBuffer): New method * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c Avoid window casts.
* 2006-06-02 Sven de Marothy <sven@physto.se>Sven de Marothy2006-06-031-0/+2
| | | | | | | | | * gnu/java/awt/peer/gtk/CairoGraphics2D.java (cairoPreserveClip, cairoResetClip): New methods. (setClip, clip): Reimplement. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c * include/gnu_java_awt_peer_gtk_CairoGraphics2D.h (cairoPreserveClip, cairoResetClip): New methods.
* 2006-06-02 Sven de Marothy <sven@physto.se>Sven de Marothy2006-06-033-0/+24
| | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/VolatileImageGraphics.java * include/gnu_java_awt_peer_gtk_GtkVolatileImage.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c New files. * gnu/java/awt/peer/gtk/ComponentGraphics.java (drawImage): Overloads for VolatileImage drawing. (drawVolatile): New method. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c * include/gnu_java_awt_peer_gtk_ComponentGraphics.h (drawVolatile): New method. * gnu/java/awt/peer/gtk/GtkVolatileImage.java Unstub implementation. * include/Makefile.am * native/jni/gtk-peer/Makefile.am Add new files. * native/jni/gtk-peer/gtkpeer.h New prototype.
* 2006-06-01 Sven de Marothy <sven@physto.se>Sven de Marothy2006-06-011-0/+1
| | | | | | | | | | | * gnu/java/awt/peer/gtk/CairoGraphics2D.java (drawImage): Check for zero size. * gnu/java/awt/peer/gtk/GdkTextLayout.java: (setFont): Declare new native method. (GdkTextLayout): Read some attributes. * include/gnu_java_awt_peer_gtk_GdkTextLayout.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c (setFont): New native method.
* 2006-05-30 Sven de Marothy <sven@physto.se>Sven de Marothy2006-05-301-0/+1
| | | | | | | | * gnu/java/awt/peer/gtk/ComponentGraphics.java (copyArea): Implemented. * include/gnu_java_awt_peer_gtk_ComponentGraphics.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c: (copyAreaNative): New method.
* * include/Makefile.am (gnu_java_nio_VMChannel.h): Added.Mark Wielaard2006-05-301-0/+3
|
* 2006-05-30 Sven de Marothy <sven@physto.se>Sven de Marothy2006-05-303-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/ComponentGraphicsCopy.java * include/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c New files. * include/Makefile.am * native/jni/gtk-peer/Makefile.am Add new files. * gnu/java/awt/peer/gtk/CairoSurface.java (getSharedGtkImage): New method. * gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c Fix copyArea. * gnu/java/awt/peer/gtk/ComponentGraphics.java Support a non-xrender context. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c Plug memory leak. * gnu/java/awt/peer/gtk/GtkImage.java * include/gnu_java_awt_peer_gtk_GtkImage.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c (initFromBuffer): New method. * native/jni/gtk-peer/gtkpeer.h: Remove declarations of previouslyremoved methods.
* 2006-05-29 Sven de Marothy <sven@physto.se>Sven de Marothy2006-05-298-61/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/BufferedImageGraphics.java * gnu/java/awt/peer/gtk/CairoGraphics2D.java * gnu/java/awt/peer/gtk/CairoSurface.java * gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java * gnu/java/awt/peer/gtk/ComponentGraphics.java * include/gnu_java_awt_peer_gtk_CairoGraphics2D.h * include/gnu_java_awt_peer_gtk_CairoSurface.h * include/gnu_java_awt_peer_gtk_ComponentGraphics.h * native/jni/gtk-peer/cairographics2d.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c New files. * gnu/java/awt/peer/gtk/GdkGraphics2D.java * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c * include/gnu_java_awt_peer_gtk_GdkGraphics2D.h Removed * include/gnu_java_awt_peer_gtk_GdkFontPeer.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c * gnu/java/awt/peer/gtk/GdkFontPeer.java (releasePeerGraphicsResource): Moved to Font peer class. * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java (createGraphics): Use new context classes. * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java: Use native BufferedImages where possible. * gnu/java/awt/peer/gtk/GdkTextLayout.java * include/gnu_java_awt_peer_gtk_GdkTextLayout.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c Move GdkGraphics2D.drawGdkTextLayout to the GdkTextLayout class, renamed to cairoDrawGdkTextLayout. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (getGraphics): Use ComponentGraphics context. (createImage): Use native BufferedImage. * gnu/java/awt/peer/gtk/GtkImage.java: * include/gnu_java_awt_peer_gtk_GtkImage.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c Remove pixmap support. (GtkImage(int, int) constructor, getGraphics) Remove drawing methods. * gnu/java/awt/print/JavaPrinterGraphics.java: Use CairoSurface instead of GtkImage. * include/Makefile.am * native/jni/gtk-peer/Makefile.am Update for new files. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c Remove superfluous GtkImage code for GdkPixmaps. * native/jni/gtk-peer/gtkpeer.h Remove graphics2d structure.
* * configure.ac: Check for magic.h and -lmagic.Tom Tromey2006-05-272-0/+25
| | | | | | | | | | | * vm/reference/java/net/VMURLConnection.java: New file. * include/java_net_VMURLConnection.h: New file. * include/Makefile.am (H_FILES): Add VMURLConnection.h. ($(top_srcdir)/include/java_net_VMURLConnection.h): New target. * native/jni/java-net/Makefile.am (libjavanet_la_SOURCES): Mention new file. (libjavanet_la_LIBADD): Add $(LIBMAGIC). * native/jni/java-net/java_net_VMURLConnection.c: New file.
* 2006-05-25 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2006-05-256-64/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * INSTALL: Bump GTK requirement to 2.8 or higher. Do not mention Cairo version requirement. Do not mention --enable-gtk-cairo configure option. * NEWS: Add entry for GdkGraphics2D. * configure.ac: Remove --enable-gtk-cairo and explicit checks for Cairo library and headers. * .externalToolBuilders/Configure.launch: Remove --enable-gtk-cairo from configure line. * gnu/classpath/Configuration.java.in (GTK_CAIRO_ENABLED): Remove field. * gnu/java/awt/BitwiseXORComposite.java: Fix javadoc typo. * gnu/java/awt/peer/gtk/GdkFontPeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c : Remove useGraphics2D references. Always assume Graphics2D is enabled. * gnu/java/awt/peer/gtk/GdkGraphics.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Remove. * gnu/java/awt/peer/gtk/GdkGraphics2D.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Remove Unlocked method variants. Remove GTK_CAIRO_ENABLED and useGraphics2D references. Always assume Graphics2D is enabled. * gnu/java/awt/peer/gtk/GdkTextLayout.java: Remove instanceof Graphics2D check. Always assume Graphics2D is enabled. * gnu/java/awt/peer/gtk/GtkCanvasPeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c (realize): Remove method. * gnu/java/awt/peer/gtk/GtkComponentPeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (isRealized): Remove method. (realize): Implement as a native method. Remove useGraphics2D references. Always assume Graphics2D is enabled. * gnu/java/awt/peer/gtk/GtkImage.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: Replace GdkGraphics references with GdkGraphics2D references. * gnu/java/awt/peer/gtk/GtkToolkit.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c: Remove useGraphics2D references. Always assume Graphics2D is enabled. * include/Makefile.am (GTKPEER_H_FILES): Remove gnu_java_awt_peer_gtk_GdkGraphics.h. * include/gnu_java_awt_peer_gtk_GdkFontPeer.h: Regenerate. * include/gnu_java_awt_peer_gtk_GdkGraphics.h: Remove. * include/gnu_java_awt_peer_gtk_GdkGraphics2D.h: Regenerate. * include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h: Likewise. * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h: Likewise. * native/jawt/Makefile.am (AM_LDFLAGS): Remove CAIRO_LIBS. * native/jni/gtk-peer/Makefile.am (libgtkpeer_la_SOURCES): Remove gnu_java_awt_peer_gtk_GdkGraphics.c. Include gnu_java_awt_peer_gtk_GdkGraphics2D.c unconditionally. (AM_LDFLAGS): Remove CAIRO_LIBS. (AM_CFLAGS): Remove CAIRO_CFLAGS. * native/jni/gtk-peer/gtkcairopeer.h: Remove. Move declarations to ... * native/jni/gtk-peer/gtkpeer.h: Add Graphics2D declarations.
* 2006-05-20 Sven de Marothy <sven@physto.se>Sven de Marothy2006-05-201-0/+1
| | | | | | | | | | | | * gnu/java/awt/peer/gtk/GdkFontPeer.java (getTrueTypeTable): New native method. (getPostScriptName): Reimplement. (parsePSName): New method. (getNumGlyphs): Implement. * include/gnu_java_awt_peer_gtk_GdkFontPeer.h: New native method. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c (Java_gnu_java_awt_peer_gtk_GdkFontPeer_getTrueTypeTable): New function. File is now explicitly dependent on FT2.
* 2006-05-13 Casey Marshall <csm@gnu.org>Casey Marshall2006-05-141-0/+24
| | | | | | | | | | | | | | | | | Patch by Michael Barker <mike@middlesoft.co.uk>. * gnu/java/nio/PipeImpl.java: Retrofitted to use VMChannel. * gnu/java/nio/SelectorImpl.java (register): Added condition for gnu.java.nio.SocketChannelSelectionKeyImpl. * gnu/java/nio/SocketChannelSelectionKeyImpl.java: new file. * gnu/java/nio/channels/FileChannelImpl.java: retrofitted to use VMChannel. * include/gnu_java_nio_VMChannel.h: new file. * java/nio/FileChannel.java (read,write): changed to call abstract method. * native/jni/java-nio/gnu_java_nio_VMChannel.c: new file. * native/jni/java-nio/Makefile.am (libjavanio_SOURCES): add `gnu_java_nio_VMChannel.c.' * vm/reference/gnu/java/nio/VMChannel.java: new file.
* 2006-05-03 Andrew John Hughes <gnu_andrew@member.fsf.org>classpath-0_91-branch-pointAndrew John Hughes2006-05-032-13/+18
| | | | | | | * include/Makefile.am: Added rules for gnu.java.net.local.LocalSocketImpl.h * include/java_lang_VMSystem.h: Regenerated correctly.
* 2006-04-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-04-3098-1284/+1338
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h, * include/gnu_java_awt_peer_gtk_GdkFontPeer.h, * include/gnu_java_awt_peer_gtk_GdkGraphics.h, * include/gnu_java_awt_peer_gtk_GdkGraphics2D.h, * include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h, * include/gnu_java_awt_peer_gtk_GdkPixbufDecoder.h, * include/gnu_java_awt_peer_gtk_GdkRobotPeer.h, * include/gnu_java_awt_peer_gtk_GdkTextLayout.h, * include/gnu_java_awt_peer_gtk_GtkButtonPeer.h, * include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h, * include/gnu_java_awt_peer_gtk_GtkChoicePeer.h, * include/gnu_java_awt_peer_gtk_GtkClipboard.h, * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h, * include/gnu_java_awt_peer_gtk_GtkFramePeer.h, * include/gnu_java_awt_peer_gtk_GtkGenericPeer.h, * include/gnu_java_awt_peer_gtk_GtkImage.h, * include/gnu_java_awt_peer_gtk_GtkLabelPeer.h, * include/gnu_java_awt_peer_gtk_GtkListPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuBarPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkPanelPeer.h, * include/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollPanePeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h, * include/gnu_java_awt_peer_gtk_GtkSelection.h, * include/gnu_java_awt_peer_gtk_GtkTextAreaPeer.h, * include/gnu_java_awt_peer_gtk_GtkTextFieldPeer.h, * include/gnu_java_awt_peer_gtk_GtkToolkit.h, * include/gnu_java_awt_peer_gtk_GtkWindowPeer.h, * include/gnu_java_awt_peer_qt_MainQtThread.h, * include/gnu_java_awt_peer_qt_QMatrix.h, * include/gnu_java_awt_peer_qt_QPainterPath.h, * include/gnu_java_awt_peer_qt_QPen.h, * include/gnu_java_awt_peer_qt_QtAudioClip.h, * include/gnu_java_awt_peer_qt_QtButtonPeer.h, * include/gnu_java_awt_peer_qt_QtCanvasPeer.h, * include/gnu_java_awt_peer_qt_QtCheckboxPeer.h, * include/gnu_java_awt_peer_qt_QtChoicePeer.h, * include/gnu_java_awt_peer_qt_QtComponentPeer.h, * include/gnu_java_awt_peer_qt_QtContainerPeer.h, * include/gnu_java_awt_peer_qt_QtDialogPeer.h, * include/gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_qt_QtFileDialogPeer.h, * include/gnu_java_awt_peer_qt_QtFontMetrics.h, * include/gnu_java_awt_peer_qt_QtFontPeer.h, * include/gnu_java_awt_peer_qt_QtFramePeer.h, * include/gnu_java_awt_peer_qt_QtGraphics.h, * include/gnu_java_awt_peer_qt_QtGraphicsEnvironment.h, * include/gnu_java_awt_peer_qt_QtImage.h, * include/gnu_java_awt_peer_qt_QtLabelPeer.h, * include/gnu_java_awt_peer_qt_QtListPeer.h, * include/gnu_java_awt_peer_qt_QtMenuBarPeer.h, * include/gnu_java_awt_peer_qt_QtMenuComponentPeer.h, * include/gnu_java_awt_peer_qt_QtMenuItemPeer.h, * include/gnu_java_awt_peer_qt_QtMenuPeer.h, * include/gnu_java_awt_peer_qt_QtPanelPeer.h, * include/gnu_java_awt_peer_qt_QtPopupMenuPeer.h, * include/gnu_java_awt_peer_qt_QtScreenDevice.h, * include/gnu_java_awt_peer_qt_QtScrollPanePeer.h, * include/gnu_java_awt_peer_qt_QtScrollbarPeer.h, * include/gnu_java_awt_peer_qt_QtTextAreaPeer.h, * include/gnu_java_awt_peer_qt_QtTextFieldPeer.h, * include/gnu_java_awt_peer_qt_QtToolkit.h, * include/gnu_java_awt_peer_qt_QtVolatileImage.h, * include/gnu_java_awt_peer_qt_QtWindowPeer.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice.h, * include/gnu_javax_sound_midi_alsa_AlsaPortDevice.h, * include/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.h, * include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h, * include/gnu_xml_libxmlj_dom_GnomeAttr.h, * include/gnu_xml_libxmlj_dom_GnomeDocument.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentBuilder.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentType.h, * include/gnu_xml_libxmlj_dom_GnomeElement.h, * include/gnu_xml_libxmlj_dom_GnomeEntity.h, * include/gnu_xml_libxmlj_dom_GnomeNamedNodeMap.h, * include/gnu_xml_libxmlj_dom_GnomeNode.h, * include/gnu_xml_libxmlj_dom_GnomeNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeNotation.h, * include/gnu_xml_libxmlj_dom_GnomeProcessingInstruction.h, * include/gnu_xml_libxmlj_dom_GnomeTypeInfo.h, * include/gnu_xml_libxmlj_dom_GnomeXPathExpression.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeXPathResult.h, * include/gnu_xml_libxmlj_sax_GnomeLocator.h, * include/gnu_xml_libxmlj_sax_GnomeXMLReader.h, * include/gnu_xml_libxmlj_transform_GnomeTransformer.h, * include/gnu_xml_libxmlj_transform_GnomeTransformerFactory.h, * include/java_lang_VMProcess.h: Regenerated. * native/jni/java-lang/java_lang_VMProcess.c: Redirect when pipe_count is 2 not 3.
* 2006-04-22 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-04-2299-1352/+1297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Mention changes to VMProcess and VMSystem. * doc/vmintegration.texinfo: Change documentation on VMProcess and VMSystem. * java/lang/reflect/Modifier.java: (toString(int,StringBuilder)): Merged from generics branch. * vm/reference/java/lang/reflect/Constructor.java (toString()): Use StringBuilder. (toGenericString()): Likewise. * vm/reference/java/lang/reflect/Field.java: (toString()): Use StringBuilder. (toGenericString()): Likewise. * vm/reference/java/lang/reflect/Method.java (toString()): Use StringBuilder. (toGenericString()): Likewise. * include/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h, * include/gnu_java_awt_peer_gtk_GdkFontPeer.h, * include/gnu_java_awt_peer_gtk_GdkGraphics.h, * include/gnu_java_awt_peer_gtk_GdkGraphics2D.h, * include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h, * include/gnu_java_awt_peer_gtk_GdkPixbufDecoder.h, * include/gnu_java_awt_peer_gtk_GdkRobotPeer.h, * include/gnu_java_awt_peer_gtk_GdkTextLayout.h, * include/gnu_java_awt_peer_gtk_GtkButtonPeer.h, * include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h, * include/gnu_java_awt_peer_gtk_GtkChoicePeer.h, * include/gnu_java_awt_peer_gtk_GtkClipboard.h, * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h, * include/gnu_java_awt_peer_gtk_GtkFramePeer.h, * include/gnu_java_awt_peer_gtk_GtkGenericPeer.h, * include/gnu_java_awt_peer_gtk_GtkImage.h, * include/gnu_java_awt_peer_gtk_GtkLabelPeer.h, * include/gnu_java_awt_peer_gtk_GtkListPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuBarPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuItemPeer.h, * include/gnu_java_awt_peer_gtk_GtkMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkPanelPeer.h, * include/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollPanePeer.h, * include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h, * include/gnu_java_awt_peer_gtk_GtkSelection.h, * include/gnu_java_awt_peer_gtk_GtkTextAreaPeer.h, * include/gnu_java_awt_peer_gtk_GtkTextFieldPeer.h, * include/gnu_java_awt_peer_gtk_GtkToolkit.h, * include/gnu_java_awt_peer_gtk_GtkWindowPeer.h, * include/gnu_java_awt_peer_qt_MainQtThread.h, * include/gnu_java_awt_peer_qt_QMatrix.h, * include/gnu_java_awt_peer_qt_QPainterPath.h, * include/gnu_java_awt_peer_qt_QPen.h, * include/gnu_java_awt_peer_qt_QtAudioClip.h, * include/gnu_java_awt_peer_qt_QtButtonPeer.h, * include/gnu_java_awt_peer_qt_QtCanvasPeer.h, * include/gnu_java_awt_peer_qt_QtCheckboxPeer.h, * include/gnu_java_awt_peer_qt_QtChoicePeer.h, * include/gnu_java_awt_peer_qt_QtComponentPeer.h, * include/gnu_java_awt_peer_qt_QtContainerPeer.h, * include/gnu_java_awt_peer_qt_QtDialogPeer.h, * include/gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h, * include/gnu_java_awt_peer_qt_QtFileDialogPeer.h, * include/gnu_java_awt_peer_qt_QtFontMetrics.h, * include/gnu_java_awt_peer_qt_QtFontPeer.h, * include/gnu_java_awt_peer_qt_QtFramePeer.h, * include/gnu_java_awt_peer_qt_QtGraphics.h, * include/gnu_java_awt_peer_qt_QtGraphicsEnvironment.h, * include/gnu_java_awt_peer_qt_QtImage.h, * include/gnu_java_awt_peer_qt_QtLabelPeer.h, * include/gnu_java_awt_peer_qt_QtListPeer.h, * include/gnu_java_awt_peer_qt_QtMenuBarPeer.h, * include/gnu_java_awt_peer_qt_QtMenuComponentPeer.h, * include/gnu_java_awt_peer_qt_QtMenuItemPeer.h, * include/gnu_java_awt_peer_qt_QtMenuPeer.h, * include/gnu_java_awt_peer_qt_QtPanelPeer.h, * include/gnu_java_awt_peer_qt_QtPopupMenuPeer.h, * include/gnu_java_awt_peer_qt_QtScreenDevice.h, * include/gnu_java_awt_peer_qt_QtScrollPanePeer.h, * include/gnu_java_awt_peer_qt_QtScrollbarPeer.h, * include/gnu_java_awt_peer_qt_QtTextAreaPeer.h, * include/gnu_java_awt_peer_qt_QtTextFieldPeer.h, * include/gnu_java_awt_peer_qt_QtToolkit.h, * include/gnu_java_awt_peer_qt_QtVolatileImage.h, * include/gnu_java_awt_peer_qt_QtWindowPeer.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.h, * include/gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice.h, * include/gnu_javax_sound_midi_alsa_AlsaPortDevice.h, * include/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.h, * include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h, * include/gnu_xml_libxmlj_dom_GnomeAttr.h, * include/gnu_xml_libxmlj_dom_GnomeDocument.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentBuilder.h, * include/gnu_xml_libxmlj_dom_GnomeDocumentType.h, * include/gnu_xml_libxmlj_dom_GnomeElement.h, * include/gnu_xml_libxmlj_dom_GnomeEntity.h, * include/gnu_xml_libxmlj_dom_GnomeNamedNodeMap.h, * include/gnu_xml_libxmlj_dom_GnomeNode.h, * include/gnu_xml_libxmlj_dom_GnomeNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeNotation.h, * include/gnu_xml_libxmlj_dom_GnomeProcessingInstruction.h, * include/gnu_xml_libxmlj_dom_GnomeTypeInfo.h, * include/gnu_xml_libxmlj_dom_GnomeXPathExpression.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h, * include/gnu_xml_libxmlj_dom_GnomeXPathNodeList.h, * include/gnu_xml_libxmlj_dom_GnomeXPathResult.h, * include/gnu_xml_libxmlj_sax_GnomeLocator.h, * include/gnu_xml_libxmlj_sax_GnomeXMLReader.h, * include/gnu_xml_libxmlj_transform_GnomeTransformer.h, * include/gnu_xml_libxmlj_transform_GnomeTransformerFactory.h, * include/java_lang_VMProcess.h, * include/java_lang_VMSystem.h: Regenerated with GCJ 4.1. 2005-12-05 Casey Marshall <csm@gnu.org> * native/jni/classpath/jcl.h (environ): define, or declare 'extern.' * native/jni/java-lang/java_lang_VMProcess.c: include <jcl.h>. Remove 'extern' define. * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_environ): don't declare 'environ.' 2005-09-25 Jeroen Frijters <jeroen@frijters.net> * java/lang/System.java, vm/reference/java/lang/VMSystem.java: Removed generic type from VMSystem.environ() signature. 2005-05-04 Tom Tromey <tromey@redhat.com> * native/jni/java-lang/java_lang_VMProcess.c (Java_java_lang_VMProcess_nativeSpawn): Added 'redirect' argument. Use defines instead of contents. * vm/reference/java/lang/VMProcess.java (redirect): New field. (spawn): Updated. (setProcessInfo): Updated. (VMProcess): Added 'redirect' argument. (nativeSpawn): Likewise. (exec): New overload. 2005-01-20 Andrew John Hughes <gnu_andrew@member.fsf.org> * include/java_lang_VMSystem.h: (Java_java_lang_VMSystem_environ): added * vm/reference/java/lang/VMSystem.java: (environ()): new native method
* 2005-04-16 Casey Marshall <csm@gnu.org>Casey Marshall2006-04-161-0/+31
| | | | | | | | | | | | | | | * configure.ac (--enable-local-sockets): new enable argument. (ENABLE_LOCAL_SOCKETS): new define. * native/jni/java-net/Makefile.am (local_sources): new variable. (lib_javanet_la_SOURCES): append `local_sources.' * native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c, * native/jni/java-net/local.c, * native/jni/java-net/local.h, * include/gnu_java_net_local_LocalSocketImpl.h, * gnu/java/net/local/LocalServerSocket.java, * gnu/java/net/local/LocalSocket.java, * gnu/java/net/local/LocalSocketAddress.java, * gnu/java/net/local/LocalSocketImpl.java: new files.
* 2006-03-31 Lillian Angel <langel@redhat.com>Lillian Angel2006-03-311-0/+1
| | | | | | | | | | PR classpath/26924 * gnu/java/awt/peer/gtk/GtkCanvasPeer.java (realize): New native function. * include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h: Added new function declaration. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c (realize): New function.
* Fixes bug #26301Mark Wielaard2006-03-221-2/+2
| | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkComponentPeer.java (gtkWidgetSetCursor): Takes GtkImage, x and y coordinates. (gtkWidgetSetCursorUnlocked): Likewise. (GtkComponentPeer): Set cursor when set. (setCursor): Handle GtkCursor. * gnu/java/awt/peer/gtk/GtkToolkit.java (createCustomCursor): New method. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (gtkWidgetSetCursor): Takes GtkImage, x and y coordinates. (gtkWidgetSetCursorUnlocked): Likewise. Handle custom image. * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h: Regenerated.
* * include/Makefile.am: Rename PlainDatagramSocketImpl toMark Wielaard2006-03-193-197/+46
| | | | | | VMPlainDatagramSocketImpl and PlainSocketImpl to VMPlainSocketImpl. * include/gnu_java_net_VMPlainDatagramSocketImpl.h: Regenerated. * include/gnu_java_net_VMPlainSocketImpl.h: Likewise.
* 2006-03-19 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-03-193-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | * doc/vmintegration.texinfo: Updated to include VMArray. * include/Makefile.am: Replace java_lang_reflect_Array.h with java_lang_reflect_VMArray.h * include/java_lang_reflect_VMArray.h: New autogenerated header. * include/java_lang_reflect_Array.h: Removed. * java/lang/reflect/Array.java: (newInstance(Class,int)): Calls VMArray. (createMultiArray(Class,int[],int)): Likewise. (createObjectArray(Class,int)): Removed. * native/jni/java-lang/Makefile.am: Replaced java_lang_reflect_Array.c with java_lang_reflect_VMArray.c * native/jni/java-lang/java_lang_reflect_VMArray.c: Renamed from java_lang_reflect_Array.c. * vm/reference/java/lang/reflect/VMArray.java: (createObjectArray(Class,int)): Native method moved from java.lang.reflect.Array.
* * gnu/java/awt/peer/gtk/GtkClipboard.java (clipboard, selection):Mark Wielaard2006-03-092-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New static field. (stringMimeType, imageMimeType, filesMimeType): Initialize directly. (canCache): Likewise. (GtkClipboard): Take String argument. (getInstance): Removed. (getClipboardInstance, getSelectionInstance): New static methods. (setSystemContents): Make synchronized. Takes boolean argument. (initNativeState): Add clipboard and selection. * gnu/java/awt/peer/gtk/GtkClipboardNotifier.java (announceClipboardChange, announcePrimaryChange): New static field. (announce): Take GtkClipboard as argument. (run): Check which clipboard to announce change for. * gnu/java/awt/peer/gtk/GtkSelection.java (clipboard): New final boolean field. (GtkSelection): Take GtkClipboard as argument. (requestText, requestImage, requestURIs, requestBytes): Add boolean clipboard argument. (requestMimeTypes): Likewise. * gnu/java/awt/peer/gtk/GtkToolkit.java (getSystemSelection): New method. * java/awt/Toolkit.java (getSystemSelection): Document. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c (cp_gtk_selection_instance): New var. (current_selection, owner): Removed. (clipboard_owner_change_cb): Use clipboard argument. (initNativeState): Store clipboard and selection instances. Cache setSystemContentsID, provideContentID, provideTextID, provideImageID, and provideURIsID. (clipboard_get_func): Use clipboard argument. (clipboard_clear_func): Likewise. Always call method. (advertiseContent): Don't cache method ids here. Check whether to use clpboard or selection. Don't set owner or current_selection. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkSelection.c (requestText, requestImage, requestURIs, requestBytes): Use extra boolean argument to select clipboard. * native/jni/gtk-peer/gtkpeer.h (cp_gtk_selection): New extern. (cp_gtk_clipboard_instance, cp_gtk_selection_instance): Likewise. * include/gnu_java_awt_peer_gtk_GtkClipboard.h: Regenerate. * include/gnu_java_awt_peer_gtk_GtkSelection.h: Likewise.
* 2006-02-23 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-02-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/java_lang_VMMath.h: (Java_java_lang_VMMath_cbrt(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_cosh(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_expm1(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_hypot(JNIEnv*,jclass,jdouble,jdouble)): Added. (Java_java_lang_VMMath_log10(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_log1p(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_sinh(JNIEnv*,jclass,jdouble)): Added. (Java_java_lang_VMMath_tanh(JNIEnv*,jclass,jdouble)): Added. * java/lang/Math.java: (cbrt(double)): Implemented. (cosh(double)): Implemented. (expm1(double)): Implemented. (hypot(double,double)): Implemented. (log10(double)): Implemented. (log1p(double)): Implemented. (signum(double)): Implemented. (signum(float)): Implemented. (sinh(double)): Implemented. (tanh(double)): Implemented. * native/fdlibm/Makefile.am: Added new files from fdlibm 5.3. * native/fdlibm/e_acos.c, * native/fdlibm/e_asin.c, * native/fdlibm/e_atan2.c, * native/fdlibm/e_exp.c, * native/fdlibm/e_fmod.c, * native/fdlibm/e_log.c, * native/fdlibm/e_rem_pio2.c, * native/fdlibm/e_remainder.c, * native/fdlibm/e_scalb.c, * native/fdlibm/e_sqrt.c, * native/fdlibm/k_cos.c, * native/fdlibm/k_rem_pio2.c, * native/fdlibm/k_sin.c, * native/fdlibm/k_tan.c, * native/fdlibm/s_atan.c, * native/fdlibm/s_ceil.c, * native/fdlibm/s_copysign.c, * native/fdlibm/s_cos.c, * native/fdlibm/s_fabs.c, * native/fdlibm/s_finite.c, * native/fdlibm/s_floor.c, * native/fdlibm/s_rint.c, * native/fdlibm/s_scalbn.c, * native/fdlibm/s_sin.c, * native/fdlibm/s_tan.c, * native/fdlibm/w_acos.c, * native/fdlibm/w_asin.c, * native/fdlibm/w_atan2.c, * native/fdlibm/w_acos.c, * native/fdlibm/w_exp.c, * native/fdlibm/w_fmod.c, * native/fdlibm/w_log.c, * native/fdlibm/w_pow.c, * native/fdlibm/w_remainder.c, * native/fdlibm/w_sqrt.c: Updated to fdlibm 5.3. * native/fdlibm/e_cosh.c, * native/fdlibm/e_hypot.c, * native/fdlibm/e_log10.c, * native/fdlibm/e_sinh.c, * native/fdlibm/s_cbrt.c, * native/fdlibm/s_expm1.c, * native/fdlibm/s_log1p.c, * native/fdlibm/s_tanh.c, * native/fdlibm/w_cosh.c, * native/fdlibm/w_hypot.c, * native/fdlibm/w_log10.c, * native/fdlibm/w_sinh.c: Imported from fdlibm 5.3. * native/fdlibm/fdlibm.h: Imported from fdlibm 5.3 with Classpath additions. * native/fdlibm/namespace.h: Updated from new math_symbols file. * native/jni/java-lang/java_lang_VMMath.c: (Java_java_lang_VMMath_cbrt(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_cosh(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_expm1(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_hypot(JNIEnv*,jclass,jdouble,jdouble)): Implemented. (Java_java_lang_VMMath_log10(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_log1p(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_sinh(JNIEnv*,jclass,jdouble)): Implemented. (Java_java_lang_VMMath_tanh(JNIEnv*,jclass,jdouble)): Implemented. * scripts/math_symbols: Added tanh, expm1, log10 and log1p. * vm/reference/java/lang/VMMath.java: (cbrt(double)): Implemented. (cosh(double)): Implemented. (expm1(double)): Implemented. (hypot(double,double)): Implemented. (log10(double)): Implemented. (log1p(double)): Implemented. (sinh(double)): Implemented. (tanh(double)): Implemented.
* * java/awt/Component.java (translateEvent): TranslateMark Wielaard2006-02-211-1/+1
| | | | | | | | | | | | | | | AdjustmentEvents to 1.0 Events. * java/awt/Scrollbar.java (dispatchEventImpl): Set valueIsAdjusting. Call setValue() before processing event. * gnu/java/awt/peer/gtk/GtkScrollbarPeer.java (setValues): Check whether we are currently changing and being called back from the Scrollbar component. (setBarValues): New native method. (postAdjustmentEvent): Mark AdjustmentEvent as user generated. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollbarPeer.c (Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_setValues): Renamed to Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_setBarValue * include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h: Regenerated.
* * java/awt/Menu.java (add(MenuItem)): Use item.getParent() to getMark Wielaard2006-02-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parent field. (insert): Likewise. (addNotify): Add the item after addNotifying it. * java/awt/MenuBar.java (setHelpMenu): Only call removeNotify() when there is a peer. Use getParent() and setParent() to manipulate parent field. (add(Menu)): Use getParent() and setParent() to manipulate parent field. Call addNotify() and addMenu() when there is a peer. (remove(int)): Call removeNotify() and delMenu() when there is a peer. (addNotify): Use getPeer()/setPeer(). Call addMenu() and addHelpMenu() when there is a peer. * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java (create): Document. (GtkMenuComponentPeer): Document. Take MenuComponent as argument. (setFont): Call setFont(Font). (setFont(Font)): Document. Only set font when not null. * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java (create): Document. Made protected. (connectSignals): Likewise. (GtkMenuItemPeer): Document. Don't try to add item. Always call connectSignals(). * gnu/java/awt/peer/gtk/GtkCheckboxMenuItemPeer.java (create): Make protected. (postMenuActionEvent): Document. * gnu/java/awt/peer/gtk/GtkMenuPeer.java (create): Document. Made protected. (addItem): Document. Made private. (addTearOff): Made private. (connectSignals): New protected overridden method. (GtkMenuPeer): Correctly cast setupAccelGroup() arguments. * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java (hasHelpMenu): New field. (create): Document. (addMenu): Made private, take GtkMenuPeer as argument and document. (GtkMenuBarPeer): Document. (nativeSetHelpMenu): Removed. (addHelpMenu): Implement. (delMenu): Document. (addMenu): Implement. * gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java (setParent): Removed. * include/gnu_java_awt_peer_gtk_GtkMenuBarPeer.h: Regenerated. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_nativeSetHelpMenu): Removed.
* 2006-02-15 Lillian Angel <langel@redhat.com>Lillian Angel2006-02-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkDialogPeer.java (setVisible): Removed method. * gnu/java/awt/peer/gtk/GtkWindowPeer.java (setLocation): New method. (setLocationUnlocked): New method. (show): Changed to use setLocation instead of setBounds. * java/awt/Component.java (show): Should call peer.show(), not peer.setVisible(), so the location of the component is correctly set. (preferredSize): Added curly braces so else statements are properly associated with if's. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_nativeSetLocation): New function. (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_nativeSet LocationUnlocked): New function. * include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Added declarations for Java_gnu_java_awt_peer_gtk_ GtkWindowPeer_nativeSetLocation and Java_gnu_java_awt_peer_gtk_GtkWindowPeer _nativeSetLocationUnlocked.
* * gnu/java/awt/peer/gtk/GtkGenericPeer.java (awtWidget): Made fieldMark Wielaard2006-02-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | final. (gtkWidgetModifyFont(Font)): New protected helper method. (gtkWidgetModifyFont(String,int,int)): Made protected and document. * gnu/java/awt/peer/gtk/GtkButtonPeer.java (gtkWidgetModifyFont): Made protected and document. * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java (gtkWidgetModifyFont): Likewise. * gnu/java/awt/peer/gtk/GtkLabelPeer.java (gtkWidgetModifyFont): Likewise. * gnu/java/awt/peer/gtk/GtkListPeer.java (gtkWidgetModifyFont): Likewise. * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java (create): Made protected. (setFont): Removed method. Done in GtkMenuComponent. * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java (create): Made abstract and protected. (setFont): Made private, add implementation. (setFont(Font)): Implemented. * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java (gtkWidgetModifyFont): Made protected and document. (create): Made protected. (setFont): Removed method. Done in GtkMenuComponent. * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (gtkWidgetModifyFont): Made protected and document. * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (gtkWidgetModifyFont): Removed, similar to GtkGenericPeer super class implementation. * include/gnu_java_awt_peer_gtk_GtkTextFieldPeer.h: Regenerated. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c (Java_gnu_java_awt_peer_gtk_GtkTextFieldPeer_gtkWidgetModifyFont): Removed.
* 2006-02-13 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-02-133-40/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/Makefile.am: Swapped Math.h for VMMath.h * include/java_lang_Math.h: Removed. * include/java_lang_VMMath.h: New autogenerated header for the new class. * java/lang/Math.java: (sin(double)): Changed to link to VMMath. (cos(double)): Changed to link to VMMath. (tan(double)): Changed to link to VMMath. (asin(double)): Changed to link to VMMath. (acos(double)): Changed to link to VMMath. (atan(double)): Changed to link to VMMath. (atan2(double)): Changed to link to VMMath. (exp(double)): Changed to link to VMMath. (log(double)): Changed to link to VMMath. (sqrt(double)): Changed to link to VMMath. (pow(double,double)): Changed to link to VMMath. (IEEEremainder(double,double)): Changed to link to VMMath. (ceil(double)): Changed to link to VMMath. (floor(double)): Changed to link to VMMath. (rint(double)): Changed to link to VMMath. * native/jni/java-lang/Makefile.am: Replaced java_lang_Math.c with java_lang_VMMath.c * native/jni/java-lang/java_lang_Math.c: Removed. * native/jni/java-lang/java_lang_VMMath.c: Renamed from java_lang_Math.c. * vm/reference/java/lang/VMMath.java: New class. (sin(double)): New native method. (cos(double)): New native method. (tan(double)): New native method. (asin(double)): New native method. (acos(double)): New native method. (atan(double)): New native method. (atan2(double)): New native method. (exp(double)): New native method. (log(double)): New native method. (sqrt(double)): New native method. (pow(double,double)): New native method. (IEEEremainder(double,double)): New native method. (ceil(double)): New native method. (floor(double)): New native method. (rint(double)): New native method.
* * include/.cvsignore: Ignore config-int.h.Tom Tromey2006-01-051-0/+1
|
* 2006-01-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-01-044-60/+212
| | | | | | | | | | | | | | | | | | | * vm/reference/gnu/java/net/VMPlainSocketImpl.java: New VM class. * vm/reference/gnu/java/net/VMPlainDatagramSocketImpl.java: New VM class. * native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c: New file. * native/jni/java-net/gnu_java_net_VMPlainDatagramSocketImpl.c: New file. * native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c: Removed. * native/jni/java-net/gnu_java_net_PlainSocketImpl.c: Removed. * native/jni/java-net/Makefile.am: Adjusted for new source files. * gnu/java/net/PlainDatagramSocketImpl.java: Use new VM interface. * gnu/java/net/PlainSocketImpl.java: Use new VM interface. * include/gnu_java_net_PlainDatagramSocketImpl.h: Removed. * include/gnu_java_net_PlainSocketImpl.h: Removed. * include/gnu_java_net_VMPlainDatagramSocketImpl.h: New header file. * include/gnu_java_net_VMPlainSocketImpl.h: New header file.
* Added AX_CREATE_STDINT.m4Dalibor Topic2006-01-041-1/+1
| | | | | | | | | | | | | 2006-01-04 Dalibor Topic <robilad@kaffe.org> * configure.ac: Added AX_CREATE_STDINT_H * include/Makefile.am (DISTCLEANFILES): Remove config-int.h. * m4/ax_create_stdint_h.m4: New file. * native/fdlibm/mprec.h: Include config-int.h. Removed C99 typedefs. Removed stdint.h and inttypes.h includes.
* * include/Makefile.am: Rename gnu_java_awt_peer_gtk_CairoGraphics.hMark Wielaard2005-12-221-1/+1
| | | | to gnu_java_awt_peer_gtk_GdkGraphics2D.h.
* 2005-12-21 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2005-12-221-8/+9
| | | | | | | | | | | | * .project: Add ClasspathHeaders.launch. * .externalToolBuilders/Autogen.launch: Run automatically when Makefile.am or configure.ac is updated. * .externalToolBuilders/CompileNative.launch: Run automatically. * .externalToolBuilders/Configure.launch: Run automatically when top-level Makefile.in changes. * include/Makefile.am (CLASSDIR): New variable. Replace lib references with $(CLASSDIR). * .externalToolBuilders/ClasspathHeaders.launch: New builder.
* 2005-12-14 Roman Kennke <kennke@aicas.com>Roman Kennke2005-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GdkGraphics.java (cached): New field. (parent): New field. (GdkGraphics(GdkGraphics)): Moved state-copy code to new method copyState(). (create): Added re-use of old graphics. (nativeDispose): Renamed native dispose method to nativeDispose(). (dispose): New non-native implementation used for caching. (finalize): Overridden to correctly dispose unused graphics. (copyState): New non-native method to correctly copy the non-native state. (nativeCopyState): Renamed native copyState method to nativeCopyState(). * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (copyState): Renamed to nativeCopyState. (dispose): Renamed to nativeDispose. * include/gnu_java_awt_peer_gtk_GdkGraphics.h (copyState): Renamed to nativeCopyState. (dispose): Renamed to nativeDispose.
* 2005-11-15 Lillian Angel <langel@redhat.com>Lillian Angel2005-11-151-0/+1
| | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkComponentPeer.java (gtkWindowGetLocationOnScreen): Added declaration for native function. (getLocationOnScreen): Changed to handle 2 different cases. If the component is a window, gtkWindowGetLocationOnScreen is called; otherwise, gtkWidetGetLocationOnScreen. * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h: Added signature for new function Java_gnu_java_awt_peer_ gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen): Implemented.
* 2005-10-07 Anthony Green <green@redhat.com>Anthony Green2005-10-081-0/+1
| | | | | | | | | * gnu/javax/sound/midi/dssi/DSSISynthesizer.java (loadInstrument): Implement. (selectProgram_): New native method. * include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h: Rebuilt. * native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c (selectProgram_): New function.
* 2005-10-07 Anthony Green <green@redhat.com>Anthony Green2005-10-071-0/+3
| | | | | | | | | | | | | | | | | | | * gnu/javax/sound/midi/dssi/DSSISynthesizer.java Doc cleanups. (DSSISynthesizer.DSSISoundbank): New class. (DSSISynthesizer.DSSIInstrument): New class. (soundbanks, defaultSoundbank): New fields. (getDefaultSoundbank): Implemented. (getAvailableInstruments): Implemented. (getProgramName_, getProgramBank_, getProgramProgram_): New native methods. (DSSISynthesizer): Create default soundbank. * native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c (Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_getProgramName_1, Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_getProgramBank_1, Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_getProgramProgram_1): New functions. * include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h: Rebuilt.
* 2005-10-06 Anthony Green <green@redhat.com>Anthony Green2005-10-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * INSTALL: Describe midi provider dependencies. * native/jni/midi-dssi/README: New file. * LICENSE (terms): Add notice about code copied from the DSSI distribution. * examples/gnu/classpath/examples/midi/Demo.java: New file. * native/jni/midi-dssi/dssi_data.h (dssi_data): Add control_count, control_port_map, control_value_map, sample_rate, and control_values fields. * native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c (DEBUG_DSSI_PROVIDER): New macro. (get_port_default): New function. (set_control): New function. (Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1): Remove debug output. Reformat. Allocate the control ports and assign proper default values. (Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_noteOn_1): Use JLONG_TO_PTR. (Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_noteOff_1): Ditto. * gnu/javax/sound/midi/dssi/DSSISynthesizer.java (Channel.controlChange): Implement. (controlChange_): New native method. * include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h: Rebuilt. * gnu/javax/sound/midi/alsa/AlsaMidiSequencerDevice.java: Make instance final.
* 2005-10-02 Anthony Green <green@redhat.com>Anthony Green2005-10-036-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * native/jni/Makefile.am: Maybe build ALSA code. Maybe build DSSI code. * gnu/javax/sound/midi/alsa/AlsaPortDevice.java, gnu/javax/sound/midi/alsa/AlsaOutputPortDevice.java gnu/javax/sound/midi/alsa/AlsaInputPortDevice.java gnu/javax/sound/midi/alsa/AlsaMidiDeviceProvider.java gnu/javax/sound/midi/alsa/AlsaMidiSequencerDevice.java: Rebuilt. native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaPortDevice.c, native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.c, native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaSequencerDevice.c, native/jni/midi-dssi/dssi_data.h, native/jni/midi-dssi/Makefile.am, native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.c native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c, native/jni/midi-alsa/Makefile.am: New files. * include/Makefile.am: Add sound header files. * include/gnu_javax_sound_midi_alsa_AlsaPortDevice.h, include/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.h include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h include/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.h, include/gnu_javax_sound_midi_alsa_AlsaSequencerDevice.h: New files. * configure.ac (AC_CONFIG_FILES): Add native/jni/midi-alsa/Makefile, native/jni/midi-dssi/Makefile.
* 2005-09-29 Sven de Marothy <sven@physto.se>Sven de Marothy2005-09-291-0/+1
| | | | | | | | | * gnu/java/awt/peer/gtk/GdkTextLayout.java (getOutline): Implement as native * include/gnu_java_awt_peer_gtk_GdkTextLayout.h Add declaration * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c (getOutline): Implement.
* * configure.ac (AC_CONFIG_FILES): Add examples/Makefile.jawt.Mark Wielaard2005-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * examples/.cvsignore: Add Makefile.jawt. * examples/Makefile.am (EXAMPLE_C_FILES): New variable. (ALL_EXAMPLE_FILES): Likewise. (install-data-local): Use ALL_EXAMPLE_FILES and add Makefile.jawt. (uninstall-local): Likewise. (EXTRA_DIST): Add Makefile.awt.in. * examples/Makefile.jawt.in: New file. * examples/README: Add jawt instructions. * examples/gnu/classpath/examples/jawt/DemoJAWT.c (Java_DemoJAWT_paint): Rename to Java_gnu_classpath_examples_jawt_DemoJAWT_paintIt. (Java_gnu_classpath_examples_jawt_DemoJAWT_paintIt): Flip foreground color based on on parameter. * examples/gnu/classpath/examples/jawt/DemoJAWT.java (paint): Renamed paintIt. (paint): Call paintIt. (on): New boolean field. (main): Add Frame name, switch on variable every 0.5 seconds and call Frame.repaint(). * examples/gnu/classpath/examples/jawt/Makefile: Removed. * include/Makefile.am (include_HEADERS): New for jni.h, jni_md.h, jawt.h and jawt_md.h.
* 2005-09-01 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2005-09-021-0/+1
| | | | | | | | | | | | PR awt/23536 * gnu/java/awt/peer/gtk/GtkImage.java, gnu_java_awt_peer_gtk_GtkImage.c (GtkImage(URL)): New constructor. (GtkImage(byte[])) New constructor. (loadImageFromData): New method. * gnu/java/awt/peer/gtk/GtkToolkit.java (createImage(URL)): Call GtkImage(URL) constructor. (createImage(byte[],int,int)): Call GtkImage(byte[]) constructor. * include/gnu_java_awt_peer_gtk_GtkImage.h: Regenerate.
* 2005-08-26 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2005-08-262-1/+3
| | | | | | | | | | | | | | | | | | | PR classpath/21660: * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c (AWT_FILEDIALOG_LOAD): New macro. (AWT_FILEDIALOG_SAVE): Likewise. (create(GtkContainerPeer,int)): Add mode parameter. Create Save dialog if mode is AWT_FILEDIALOG_SAVE. Remove workaround for http://bugzilla.gnome.org/show_bug.cgi?id=166852. (create()): Add mode argument to create call. * gnu/java/awt/peer/gtk/GtkWindowPeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (setVisibleNative): Override method. (setVisibleNativeUnlocked): Override method. Call gdk_flush after showing or hiding window. * include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h: Regenerate. * include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Regenerate.
* 2005-08-24 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2005-08-253-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (beginNativeRepaintID): Remove variable. (endNativeRepaintID): Likewise. (cp_gtk_button_init_jni): Don't look up beginNativeRepaint and endNativeRepaint methods. * gnu/java/awt/peer/gtk/GtkFramePeer.java (resizing): Remove field. * gnu/java/awt/peer/gtk/GtkWindowPeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (resizing): Remove field. * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (hiding): Remove field. (setVisible): Don't override. * gnu/java/awt/peer/gtk/GtkChoicePeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c (selectNative): New method. (selectNativeUnlocked): Likewise. (select): Call setNativeUnlocked if in the GTK main thread, selectNative otherwise. * gnu/java/awt/peer/gtk/GtkComponentPeer.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (gtkWidgetSetCursorUnlocked): New method. (setCursor(Cursor)): Call gtkWidgetSetCursorUnlocked if in the GTK main thread, gtkWidgetSetCursor otherwise. (setVisibleNative): New method. (setVisibleNativeUnlocked): Likewise. (setVisible): Call setVisibleNativeUnlocked if in the GTK main thread, setVisibleNative otherwise. (hide): Call setVisible(false). (show): Call setVisible(true).