Re: Set Label on Button with Resource File



Olexiy Avramchenko wrote:
Hey there,

Is that possible to change the Label of a button using just the resource
files ?

No. You can change only the style stuff like colours, fonts, etc.

    I tried something like

widget "mywindow.GtkLabel.my_button" style "white-label"

    Does anybody have any clue on how to do that ?
Use glade interface in text/xml. You can easily edit it by hands in any text editor.
Glade is an interface editor for interface building:
http://glade.gnome.org/

libglade is a library for using glade interface files:
http://www.daa.com.au/~james/software/libglade/

Good advice. Also, if you are trying to change the label for internationalisation (so you program will work in French and English, for example), you should look at the gettext system.

There's a guide here:

 http://www.gnome.org/~malcolm/i18n/

John



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