Re: rc file



Hi,

  Almost this, with gtk_widget_set_name(widget,"newbutton") the widget's name is
"newbutton", then put in RC file widget "newbutton" style "mybutton".

[]'s

Claudio


I've create a rc file like this:

style "mybutton"
{
[cut]
}
widget_class "*GtkButton*" style "mybutton"

this rc file modify the style of all the button.
How can I modify the style of a single button?
I've tried to create a new style adding

widget "*GtkButton*" style "newbutton"

and adding in the code

gtk_widget_set_name(widget,"newbutton");

but it doesn't work.




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