Re: Set Label on Button with Resource File
- From: John Cupitt <john cupitt ng-london org uk>
- Cc: gtk-list gnome org
- Subject: Re: Set Label on Button with Resource File
- Date: Fri, 16 Apr 2004 12:43:05 +0000
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]