Re: Button background colors



On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote:
> I am using Gtk 2.8.18.
> 
> I would like to know how to set the background color in a GtkButton.
> 
> I cannot set the background in a style, theme, or resource file
> because I am programming to requirements that specify different
> background colors for different buttons.

gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton");

then use "myNameForThisSpecialButton" in an RC file.





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