Re: Set Label on Button with Resource File

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

 



>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.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux