[gui][PATCH] Button peer painting fixes
Thomas Fitzsimmons
fitzsim@redhat.com
Fri Oct 8 17:49:00 GMT 2004
Hi,
I just committed this patch to java-gui-branch. Button colours are set
properly now. Also, buttons are only repainted when necessary.
Tom
2004-10-08 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkButtonPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(gtkWidgetSetBackground): New method.
(block_expose_events_cb): New function.
(connectSignals): Block the AWT's expose event processing on
button press and release.
(gtkSetLabel): Set text on proper widget.
(gtkWidgetModifyFont): Modify font on proper widget.
(gtkWidgetSetBackground): Set normal, active and prelight
colours.
(gtkWidgetSetForeground): Set forground colour of proper widget.
(gtkActivate): Activate the correct widget.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (clearRect):
Only clear rectangle if the backing component is not an event
box.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
(beginNativeRepaintID): New variable.
(endNativeRepaintID): Likewise.
(gtkInit): Initialize new fields with method IDs.
* jni/gtk-peer/gtkpeer.h (beginNativeRepaintID): Declare extern.
(endNativeRepaintID): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peer-button-painting-fixes.patch
Type: text/x-patch
Size: 10324 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041008/d4f79905/attachment.bin>
More information about the Java-patches
mailing list