Re: Set Label on Button with Resource File



>Hey there,
>
>	Is that possible to change the Label of a button using just the resource
>files ?
>
>	I tried something like
>
>widget "mywindow.GtkLabel.my_button" style "white-label"

in foo.c:

     gtk_widget_set_name (button, "MyFoo");

in the RC file:

     widget "*MyFoo" style "my-button"
     widget "*MyFoo*" style "my-button"
     
the first line sets the style of the button, the second of all its
children, such as the label.



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