aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2004-02-102004-02-10 David Jee <djee@redhat.com>David Jee4-1/+14
* java/awt/BorderLayout.java (calcCompSize): Invisible components get zero dimensions. * java/awt/Button.java (setLabel): Set actionCommand. * java/awt/Component.java (show): Invalidate component and parent container. (hide): Likewise. From-SVN: r77613
2004-02-102004-02-10 David Jee <djee@redhat.com>David Jee2-113/+376
* java/awt/GridBagLayout.java (GridBagLayout): New private field, internalcomptable. (lookupInternalConstraints): New method. (ArrangeGrid): Use components' MINSIZE. Use internalcomptable. (GetLayoutInfo): Reimplement. (calcCellSizes): Ignore rows/columns with size 0. From-SVN: r77612
2004-02-102004-02-10 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+8
* gnu/java/awt/EmbeddedWindow.java (setHandle): Use java.awt.Component.getPeer() instead of java.awt.Component.peer directly. From-SVN: r77605
2004-02-102004-02-10 David Jee <djee@redhat.com>David Jee3-1/+29
* gnu/java/awt/peer/gtk/GtkButtonPeer.java (gtkSetLabel): New native method definition. (setLabel): Use gtkSetLabel. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method. From-SVN: r77604
2004-02-10linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't bump retaddr here.Alan Modra2-19/+50
* config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't bump retaddr here. * include/powerpc-signal.h: Revert 2004-01-21 change. (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return from syscall for ppc32 versions. From-SVN: r77601
2004-02-08ByteBuffer.java (shiftDown): New helper method.Per Bothner13-548/+489
* java/nio/ByteBuffer.java (shiftDown): New helper method. * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation. * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method. * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers. Pass ByteOrder parameter to most methods, since the underlying ByteBuffer's order isn't always what we should use. * java/nio/ByteBufferImpl.java: Pass byte-order various places. * java/nio/DirectByteBufferImpl.java: Likewise. Use ByteBufferHelper methods. * java/nio/MappedByteBufferImpl.java: Likewise. (compact): Use shiftDown. * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order. (get, put): Use ByteBufferHelper. (compact): Use new shiftDown method. (duplicate(boolean)): New helper method. (duplicate, asReadOnlyBuffer): Use it. (order): Return endian field. * java/nio/DoubleViewBufferImpl.java: Likewise. * java/nio/FloatViewBufferImpl.java: Likewise. * java/nio/IntViewBufferImpl.java: Likewise. * java/nio/LongViewBufferImpl.java: Likewise. * java/nio/ShortViewBufferImpl.java: Likewise. * java/nio/CharViewBufferImpl.java (subsequence): Redundant test. * java/nio/DirectByteBufferImpl.java (shiftDown): New native method. (compact): Re-implement using shiftDown. From-SVN: r77501
2004-02-08* include/x86_64-signal.h: Fix typo.Andreas Jaeger2-1/+5
From-SVN: r77491
2004-02-08i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Add volatile qualifier to _regs.Diego Novillo1-1/+1
* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Add volatile qualifier to _regs. From-SVN: r77489
2004-02-08i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Add volatile qualifier to _regs.Diego Novillo1-0/+1
* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Add volatile qualifier to _regs. [[Split portion of a mixed commit.]] From-SVN: r77488.2
2004-02-08i386-signal.h (MAKE_THROW_FRAME): Add volatile qualifier to _regs.Diego Novillo2-1/+6
* include/i386-signal.h (MAKE_THROW_FRAME): Add volatile qualifier to _regs. From-SVN: r77484
2004-02-062004-02-06 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+10
* java/io/ObjectInputStream.java (currentClassLoader): Reverted to old version of this method. From-SVN: r77397
2004-02-06ObjectInputStream.java: Made all calls to dumpElement[ln] conditional on ↵Jeroen Frijters4-595/+486
dump flag. 2004-02-06 Jeroen Frijters <jeroen@frijters.net> * java/io/ObjectInputStream.java: Made all calls to dumpElement[ln] conditional on dump flag. (readObject): Changed to use cached info from ObjectStreamClass. (readClassDescriptor): Cache more information in ObjectStreamClass. (processResolution, readFields): Use cached info from ObjectStreamClass. (newObject): Throw exception instead of returning null for failure. (getField, getMethod, callReadMethod, setBooleanField, setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setShortField, setObjectField, readObjectParams): Removed. (dumpElement, dumpElementln): Removed dump flag condition check. * java/io/ObjectStreamField.java (hasReadMethod): Removed. (setClass): Added call to cacheMethods() (findMethod): New method. (cacheMethods): New method. (ObjectStreamClass): Added call to cacheMethods(). (setFields): Cache fields. (getClassUID): Use AccessController.doPrivileged to invoke setAccessible. (readObjectMethod, readResolveMethod, realClassIsSerializable, realClassIsExternalizable, fieldMapping, firstNonSerializableParent): New fields. * java/io/ObjectStreamField.java (ObjectStreamField): New constructor. (ObjectStreamField): Removed FIXME workaround. (getTypeString, isPrimitive): Made safe for cases where type == null. (setBooleanField, setByteField, setCharField, setShortField, setIntField, setLongField, setFloatField, setDoubleField, setObjectField): New methods. From-SVN: r77395
2004-02-05Component.java (getFont): Return a default font instead of null.Thomas Fitzsimmons2-1/+8
2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/Component.java (getFont): Return a default font instead of null. From-SVN: r77352
2004-02-05Scrollbar.java (next_scrollbar_number): New field.Thomas Fitzsimmons3-108/+101
2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/Scrollbar.java (next_scrollbar_number): New field. (Scrollbar (int, int, int, int, int)): Make default page increment 10. (setValues): Only call peer.setValues if one of the values has changed. (generateName): New method. (getUniqueLong): New method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c (range_scrollbar): Remove structure. (post_adjustment_event): Remove function. (post_change_event): Accept jobject argument. (create): Cast jints to gdoubles. Round scrollbar values to the nearest integer. Clamp min, max and value settings. (connectJObject): Connect hook to widget->window. (connectSignals): Remove range_scrollbar structure variables. Remove "move-slider" connection. Pass global peer reference to "value-changed" callback. (setLineIncrement): Cast jint value to gdouble. (setPageIncrement): Likewise. (setValues): Likewise. Clamp min, max and value settings. From-SVN: r77332
2004-02-052004-02-05 Michael Koch <konqueror@gmx.de>Michael Koch14-130/+181
* javax/swing/AbstractCellEditor.java (getCellEditorValue): Removed. * javax/swing/Box.java: Reformated. (serialVersionUID): New field. * javax/swing/ButtonGroup.java: Removed some weird whitespace. * javax/swing/CellEditor.java: Reformated. * javax/swing/CellRendererPane.java (serialVersionUID): New field. (AccessibleCellRendererPaneserialVersionUID): New field. * javax/swing/DefaultListModel.java (serialVersionUID): New field. * javax/swing/JEditorPane.java (serialVersionUID): New field. (setPage): Throws IOException. (addHyperlinkListener): Implemented. (removeHyperlinkListener): Implemented. (getHyperlinkListener): New method. * javax/swing/JFileChooser.java (serialVersionUID): New field. (AccessibleJFileChooser.serialVersionUID): New field. (addActionListener): Implemented. (removeActionListener): Implemented. (getActionListeners): New method. * javax/swing/JFormattedTextField.java (serialVersionUID): New field. (AbstractFormatter.serialVersionUID): New field. (clone): Throws CloneNotSupportedException (setEditValid): Add missing argument. (stringToValue): Throws ParseExcpetion. (valueToString): Throws ParseException. (commitEdit): Throws ParseException. * javax/swing/JLabel.java (serialVersionUID): New field. * javax/swing/JList.java (serialVersionUID): New field. (addListSelectionListener): Reformated. (removeListSelectionListener): Reformated. (getListSelectionListeners): New method. * javax/swing/colorchooser/AbstractColorChooserPanel.java: Reformated. (serialVersionUID): New field. * javax/swing/table/AbstractTableModel.java (getValueAt): Removed. (getColumnCount): Removed. (getRowCount): Removed. From-SVN: r77329
2004-02-052004-02-05 Michael Koch <konqueror@gmx.de>Michael Koch2-7/+13
* java/awt/datatransfer/DataFlavor.java (imageFlavor): Javadoc added. (javaJVMLocalObjectType): Fixed. From-SVN: r77328
2004-02-052004-02-05 Michael Koch <konqueror@gmx.de>Michael Koch2-264/+270
* java/lang/Thread.java (Thread): Reordered. (setContextClassLoader): Fixed javadoc comment. (setPriority): Reordered. (yield): Reordered. (initialize_native): Reordered. (gen_name): Reordered. From-SVN: r77327
2004-02-05Thread.java: Reordered fields...Michael Koch2-86/+107
2004-02-05 Michael Koch <konqueror@gmx.de> * java/lang/Thread.java: Reordered fields, reformated much code, no functional changes, some variables renamed, javadoc comments merged. From-SVN: r77322
2004-02-05Deflater.java, [...]: Reformated and javadoc comments merged from classpath.Michael Koch4-109/+299
2004-02-05 Michael Koch <konqueror@gmx.de> * java/util/zip/Deflater.java, java/util/zip/DeflaterOutputStream.java, java/util/zip/GZIPInputStream.java: Reformated and javadoc comments merged from classpath. From-SVN: r77319
2004-02-052004-02-05 Michael Koch <konqueror@gmx.de>Michael Koch3-3/+10
* gnu/java/nio/NIOServerSocket.java (impl): Unused, removed. * gnu/java/nio/SocketChannelImpl.java (finnishConnect): Don't throw NoConnectionPendingException if not connected or no connection pending. From-SVN: r77317
2004-02-04SwingUtilities.java: Many new functions.Graydon Hoare4-106/+652
2004-02-02 Graydon Hoare <graydon@redhat.com> * javax/swing/SwingUtilities.java: Many new functions. * java/awt/Container.java (LightweightDispatcher): Reimplement. * javax/swing/basic/BasicGraphicsUtils.java (getPreferredButtonSize): Start layout from top-left corner. From-SVN: r77271
2004-02-04AffineTransform.java: Corrected comments on the field definitions for m11 ↵Olga Rodimina2-8/+57
and m10. * java/awt/geom/AffineTransform.java: Corrected comments on the field definitions for m11 and m10. (shear): Fixed few errors that caused shear transformation to be performed incorrectly. (createInverse): Fixed to return correct inverse of the given matrix. From-SVN: r77261
2004-02-04natPosixProcess.cc (startProcess): Handle case where PATH or LD_LIBRARY_PATH ↵Tom Tromey2-3/+8
is not set in parent environment. * java/lang/natPosixProcess.cc (startProcess): Handle case where PATH or LD_LIBRARY_PATH is not set in parent environment. From-SVN: r77203
2004-02-03GtkListPeer.java, [...]: Fix handling of alias methods...Thomas Fitzsimmons23-698/+713
2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkListPeer.java, java/awt/BorderLayout.java, java/awt/CardLayout.java, java/awt/CheckboxGroup.java, java/awt/Choice.java, java/awt/Component.java, java/awt/Container.java, java/awt/FontMetrics.java, java/awt/GridBagLayout.java, java/awt/LayoutManager2.java, java/awt/List.java, java/awt/Menu.java, java/awt/MenuBar.java, java/awt/MenuItem.java, java/awt/Polygon.java, java/awt/Rectangle.java, java/awt/ScrollPane.java, java/awt/Scrollbar.java, java/awt/TextArea.java, java/awt/TextField.java, java/awt/image/renderable/RenderContext.java, javax/swing/JApplet.java: Fix handling of alias methods, where a method has been deprecated in favour of a new one with the same funtion but a different name. Put the method implementation in the deprecated method and have the new method call the deprecated one. Make all other code call the new method. From-SVN: r77178
2004-02-03* gnu/java/nio/DatagramChannelImpl.javaMohan Embar4-12/+78
(inChannelOperation): New field. (isInChannelOperation): New accessor. (setInChannelOperation): New modifier. (receive): Use capacity() - position() of destination buffer instead of remaining(). Set and reset our "in channel operation indicator" before and after delegating the receive to our datagram socket. Removed testing code. Update destination buffer's current position if it is backed by a byte array (hasArray() is true). (send): Set and reset our "in channel operation indicator" before and after delegating the send to our datagram socket. Removed testing code. Update source buffer's current position if it is backed by a byte array (hasArray() is true). * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)): Use capacity() - position() of destination buffer instead of remaining(). * java/net/DatagramSocket.java (receive): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this operation. (send): Likewise. From-SVN: r77173
2004-02-02configure.in: Add pkgconfig check for glib and gthread.Thomas Fitzsimmons3-82/+185
2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com> * configure.in: Add pkgconfig check for glib and gthread. * configure: Regenerate. From-SVN: r77093
2004-02-01jvm.h (MAYBE_UNUSED): New macro tp mark probably unused arguments.Michael Koch4-2/+12
2004-02-01 Michael Koch <konqueror@gmx.de> * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused arguments. * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused. * verify.cc (debug_print): Mark 'fmt' unused. From-SVN: r77079
2004-01-30configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.Michael Koch7-1639/+494
2004-01-30 Michael Koch <konqueror@gmx.de> * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1. * configure: Regenerated. * glib-2.0.m4: Removed. * gtk-2.0.m4: Removed. * libart.m4: Removed. * pkg.m4: New file. From-SVN: r76993
2004-01-30* gnu/java/net/PlainSocketImpl.javaMohan Embar7-26/+127
(inChannelOperation): New field. (isInChannelOperation): New accessor. (setInChannelOperation): New modifier. * gnu/java/nio/ServerSocketChannelImpl.java (accept): Set and reset our server socket's PlainSocketImpl's "in channel operation" indicator before and after delegating the accept to our server socket. * gnu/java/nio/SocketChannelImpl.java (connect): Set and reset our socket's PlainSocketImpl's "in channel operation" indicator before and after delegating the operation to our socket. (read): Likewise. (write): Likewise. * java/net/ServerSocket.java (implAccept): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this accept operation. * java/net/Socket.java (connect): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this connect operation. * java/nio/channels/spi/AbstractSelectableChannel.java (configureBlocking): Only call implConfigureBlocking() if the desired blocking mode is different from our current one. From-SVN: r76956
2004-01-30BufferedReader.java (sbuf): New field.Mohan Embar3-25/+41
* java/io/BufferedReader.java (sbuf): New field. (readLine): Use String.valueOf instead of new String() as per Per Bothner's suggestion. Use instance sbuf field instead of a local StringBuffer instance. * java/io/InputStreamReader.java (read(char[],int,int)): Pass the caller's buffer to refill(). (read(void)): Pass our internal work buffer to refill if our input queue is empty. (refill): Changed return type to int. Use the specified buffer instead of our work buffer as per Bryce McKinlay's suggestion. Return the number of characters read or -1 for EOF. From-SVN: r76927
2004-01-29* gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.Scott Gilbertson1-0/+4
From-SVN: r76900
2004-01-29Index: libjava/ChangeLogScott Gilbertson1-0/+26
from Scott Gilbertson <scottg@mantatest.com> * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented. From-SVN: r76899
2004-01-29Makefile.am: Added gnu/awt/xlib/XFontPeer.java.Scott Gilbertson6-9/+393
* Makefile.am: Added gnu/awt/xlib/XFontPeer.java. * Makefile.in: Re-generated. * gnu/awt/xlib/XFontPeer.java: New file. * gnu/awt/xlib/XGraphics.java (setFont): Test for null font. (setClip): Commented out debug printout. * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit. (getFontPeer): Return XFontPeer. (getLocalGraphicsEnvironment): New method. (getClasspathFontPeer): New method. (createFont): New method. From-SVN: r76891
2004-01-29ClasspathFontPeer.java (getTransform): Never return null.Scott Gilbertson2-0/+7
* gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never return null. From-SVN: r76874
2004-01-292004-01-29 Kim Ho <kho@redhat.com>Kim Ho3-0/+45
* gnu/java/awt/peer/gtk/GtkFramePeer.java (gtkLayoutSetVisible): New method (setMenuBar): Hide layout before setting MenuBar and reshow it after. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (gtkLayoutSetVisible): Hide or show the Gtk Layout. From-SVN: r76861
2004-01-282004-01-28 Michael Koch <konqueror@gmx.de>Michael Koch2-14/+5
* gnu/java/lang/ClassHelper.java (getPackagePortion): Removed. From-SVN: r76809
2004-01-282004-01-28 Michael Koch <konqueror@gmx.de>Michael Koch3-51/+127
* javax/swing/JComponent.java (listenerList): Initalize globally. (ancestor_list): Removed. (veto_list): Removed. (change_list): Removed. (get_veto_list): Removed. (get_change_list): Removed. (get_ancestor_list): Removed. (removeAncestorListener): Reimplemented. (removePropertyChangeListener): Likewise. (removeVetoableChangeListener): Likewise. (addAncestorListener): Likewise. (addPropertyChangeListener): Likewise. (addVetoableChangeListener): Likewise. (getListeners): New method. (getAncestorListeners): Likewise. (getVetoableChangeListeners): Likewise. (fireVetoableChange): Throws PropertyVetoException. * javax/swing/JEditorPane.java (JEditorPane): Throws IOException. From-SVN: r76802
2004-01-282004-01-28 David Jee <djee@redhat.com>David Jee2-0/+7
* gnu/java/awt/peer/gtk/GtkFramePeer.java (create): Set the default foreground color to java.awt.SystemColor.windowText. From-SVN: r76792
2004-01-272004-01-27 Michael Koch <konqueror@gmx.de>Michael Koch3-2/+8
* gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java, * gnu/java/awt/peer/gtk/GdkGlyphVector.java: Reindented to merge with classpath. From-SVN: r76757
2004-01-272004-01-27 David Jee <djee@redhat.com>David Jee2-4/+64
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (addExposeFilter): Handle GtkFramePeer separately. (removeExposeFilter): Likewise. From-SVN: r76751
2004-01-272004-01-27 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+6
* gnu/java/net/protocol/http/Connection.java (getOutputStream): Fixed typo. From-SVN: r76748
2004-01-272004-01-27 Michael Koch <konqueror@gmx.de>Michael Koch2-14/+27
* java/lang/Class.java (getConstructor): Removed SecurityException from throws clause. (_getConstructors): Likewise. (getConstructors): Likewise. (getDeclaredConstructor): Likewise. (getDeclaredClasses): Likewise. (getDeclaredConstructors): Likewise. (getDeclaredField): Likewise. (getDeclaredMethod): Likewise. (getDeclaredMethods): Likewise. (getField): Likewise. (getMethod): Likewise. (getMethods): Likewise. From-SVN: r76747
2004-01-272004-01-27 Kim Ho <kho@redhat.com>Kim Ho10-13/+139
* gnu/java/awt/peer/gtk/GtkFramePeer.java (removeMenuBarPeer): Remove MenuBarPeer argument. * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java (dispose): Call native method. * java/awt/Frame.java (setMenuBar): Create and remove MenuBar peers only if the Frame has a peer. (addNotify): Create the MenuBar peer if one exists. (removeNotify): Remove MenuBar peer if one exists. * java/awt/Menu.java: Fix imports. (addNotify): Don't use full class name. (removeNotify): Call removeNotify on all children. * java/awt/MenuBar.java (removeNotify): Call removeNotify on all children. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (removeMenuBarPeer): Remove MenuBarPeer argument. Iterate through children to find the Frame's MenuBar. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c New file. (dispose): Remove references to the MenuComponent. From-SVN: r76740
2004-01-27AbstractCellEditor.java: Reformated.Michael Koch5-23/+56
2004-01-27 Michael Koch <konqueror@gmx.de> * javax/swing/AbstractCellEditor.java: Reformated. * javax/swing/DefaultListSelectionModel.java (listenerList): Made protected. (addListSelectionListener): Javadoc added. (removeListSelectionListener): Likewise. (getListeners): Likewise. (getListSelectionListeners): Likewise. * javax/swing/JComboBox.java: Merged copyright year. * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line. From-SVN: r76737
2004-01-27AbstractCellEditor.java: Reformated.Michael Koch1-0/+11
2004-01-27 Michael Koch <konqueror@gmx.de> * javax/swing/AbstractCellEditor.java: Reformated. * javax/swing/DefaultListSelectionModel.java (listenerList): Made protected. (addListSelectionListener): Javadoc added. (removeListSelectionListener): Likewise. (getListeners): Likewise. (getListSelectionListeners): Likewise. * javax/swing/JComboBox.java: Merged copyright year. * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line. From-SVN: r76736
2004-01-27JTableHeader.java: Extend JComponentAndrew Haley2-1/+5
2004-01-26 Andrew Haley <aph@redhat.com> * javax/swing/table/JTableHeader.java: Extend JComponent From-SVN: r76733
2004-01-27GtkFramePeer.java (setMenuBar): Fix spacing.Kim Ho2-1/+6
2004-01-26 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Fix spacing. From-SVN: r76730
2004-01-27GtkFramePeer.java (moveLayout): New method.Kim Ho3-8/+71
2004-01-26 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New method. (setMenuBar): Shift the Gtk layout up/down by the MenuBar height and let the Layout Managers readjust anything that needs to move. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (moveLayout): New method. Shift everything in the Gtk layout in the Y direction by an offset. From-SVN: r76729
2004-01-262004-01-26 David Jee <djee@redhat.com>David Jee7-90/+191
* gnu/java/awt/peer/gtk/GtkComponentPeer.java (handleEvent): Implemented. Handles PaintEvents. (paint): Implemented. Use GTK native methods to queue updates for this heavyweight peer. * gnu/java/awt/peer/gtk/GtkContainerPeer.java (handleEvent): Removed. * java/awt/Component.java (paint): Implemented. Explictly paint the heavyweight peer. (update): Clear the background for heavyweight components. (paintAll): No need to call peer.paint() anymore. (processEvent): Don't process PaintEvents here. It's now done in the peer's handleEvent(). (processPaintEvent): Removed. * java/awt/Container.java (paint): No need to call super.paint(). Visit heavyweight children as well. (update): Don't clear the background here. It's done in Component.update(). (visitChildren): Added check to not recurse into Containers. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (filter_expose_event_handler): New method. Filter unwanted expose events while painting heavyweight peers. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter): New method. Connect filter and block pre_event_handler. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter): New method. Disconnect filter and unblock pre_event_handler. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea): New method. Invalidate and update given area. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Add checks for unwanted expose events. From-SVN: r76668
2004-01-262004-01-26 David Jee <djee@redhat.com>David Jee2-1/+6
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (find_bg_color_widget): For GtkButton, return its child. From-SVN: r76667