Re: How to set background/foreground on button, entry, or label?
- From: Tony Denault <denault hawaii edu>
- To: gtk-list gnome org
- Subject: Re: How to set background/foreground on button, entry, or label?
- Date: Thu, 04 Mar 2004 10:25:57 -1000 (HST)
On Thu, 4 Mar 2004, Owen Taylor wrote:
> On Wed, 2004-03-03 at 20:39, Tony Denault wrote:
> > Hi All,
> >
> > After doing some research and hacking, I wrote some code to set the
> > foreground / backgroud color of a button, entry, & label. This is still a
> > confusing part of GTK 2.x., an internet search on this question resulted
> > in lots of partial answers, vague description on how it should work,
> > but no clear answer that work across all widgets.
>
> Have you seen:
>
> http://ometer.com/gtk-colors.html
Yes, it was one of the references I came acoss while researching this
subject. It indicated using gtk_widget_modify_fg/bg(), but I only
got the fg to change for button&label. Could not get the entry text, or
background colors for label, entry, button to change.
As I stated before, if there is a better technique for gtk 2.0, please
modify the code and post.
Thanks,
Tony
/-----------------------------------------------------------------------\
| Tony Denault | Email: denault irtf ifa hawaii edu |
| Institute for Astronomy | Phone: (808) 932-2378 |
| 640 North Aohoku Place | Fax: (808) 933-0737 |
| Hilo, Hawaii 96720 | |
\-----------------------------------------------------------------------/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]