Re: Get current color of a widget?



David Härdeman wrote:

Hi,

I've been unable to find the answer to the following question:

How do I get the current fg color for a widget in a specific state? Something like the inverse of gtk_widget_modify_fg()...

Hello,

GTK_WIDGET(widget)->style->fg[the_state_you_need]
Look at:
http://developer.gnome.org/doc/API/2.0/gtk/GtkStyle.html#GtkStyle-struct

   Olexiy




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