Re: rc file



Am Fr, den 21.01.2005 schrieb Giovanni Manenti um 10:41:
hi, I'm using gtk 1.2
[...]
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.

Make sure you

- have the rc file in place (~/.gtkrc normally)
- have no theming engine working concurrently
- your app parses the rc file at startup (gtk_rc_parse( ... ) after
gtk_init )

Naming seems to be okay.

HTH,
Marc





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