[Q] gtk_widget_set_style
- From: Didier Verna <verna inf enst fr>
- To: gtk-list redhat com
- Subject: [Q] gtk_widget_set_style
- Date: 28 Jan 1998 10:38:27 +0100
Hi!
I'd like some help on the following:
I have a label which is child of a table, and I want to change the label font
dynamicaly. What I do is:
> style = gtk_widget_get_style (label);
> font = gdk_font_load (pattern);
> style->font = font;
> gtk_widget_set_style (label, style);
Well, this works, but the new font is now used in all widgets of my app, not
only the label.
Any ideas ? What am I doing wrong ?
Thanks
--
/ / _ _ Didier Verna http://www-inf.enst.fr/~verna/
- / / - / / /_/ / E.N.S.T. INF C214 mailto:verna@inf.enst.fr
/_/ / /_/ / /__ / 46 rue Barrault Tel. (33) 01 45 81 80 72
75634 Paris cedex 13 Fax. (33) 01 45 81 31 19
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]