This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Changing the foreground color of a Checkbox


On Mon, 2004-01-26 at 15:19, David Jee wrote:
> Hello,
> 
> This patch fixes the find_bg_color_widget() method in
> jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c.  A GtkButton is
> an instance of GtkBin, and it contains a GtkLabel as its only child.  If
> we want to modify the foreground color of this GtkButton, we should
> actually modify its child's foreground color in order to have any
> visible effect.  This will allow us to change the foreground color of a
> AWT CheckBox.
> 
> Is it ok to commit?
> 

Yes.

Tom

> -David Jee
> 
> 2004-01-26  David Jee  <djee@redhat.com>
> 
> 	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
> 	(find_bg_color_widget): For GtkButton, return its child.
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]