[9261] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] dynamically changing a button's font

daemon@ATHENA.MIT.EDU (beach@ataman.com)
Tue Oct 13 18:59:58 1998

Date: Tue, 13 Oct 1998 16:57:01 -0600
From: beach@ataman.com
To: Gtk-List <gtk-list@redhat.com>
Mail-Followup-To: Gtk-List <gtk-list@redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


I've been working on some gtk code which quite frequently needs to
change the style used by some of the controls on the screen.  When
dealing with a label, I've had much success with something like:

label.set_style(new_style);

(where new_style is set to use a different font than the label's
former style.)

However the same code doesn't seem to work at all when I use it with a
button.  I read the styles.txt and it seems to indicate to me that my
code should be working.  Any ideas?

Dave

-- 
David J. C. Beach <beach@ataman.com>
Ataman Software, Inc.

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post