Patch: Label fixes

Thomas Fitzsimmons fitzsim@redhat.com
Thu Oct 30 00:05:00 GMT 2003


Hello,

This patch reverts the change made here:

2003-07-24  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create):
	Don't pack label in an event box.

and implements new methods that "unwrap" the label from the event box.

Wrapping the label allows its background colour to be set and allows it
to receive events.

OK to commit?

Tom

2003-10-29  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkLabelPeer.java (create()): Call new create.
	(create(String, float)): New method.
	(setText): Make native.
	(nativeSetAlignment): New method.
	(setAlignment): Call nativeSetAlignment.
	(getArgs): Remove method.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
	(find_fg_color_widget, find_bg_color_widget): New functions.
	(gtkWidgetSetForeground): Call find_fg_color_widget.
	(gtkWidgetSetBackground): Call find_bg_color_widget.  Modify active and
	prelight colors.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create): Wrap
label
	widget in event box.
	(setText, setAlignment): Implement new native methods.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: label-colors.diff
Type: text/x-patch
Size: 5798 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20031030/f5050851/attachment.bin>


More information about the Java-patches mailing list