Re: How to set background/foreground on button, entry, or label?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx |
| Institute for Astronomy          |              Phone: (808) 932-2378 |
| 640 North Aohoku Place           |                Fax: (808) 933-0737 |
| Hilo, Hawaii 96720               |                                    |
\-----------------------------------------------------------------------/


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux