[gtkada] Changing widget styles recursively
Pierre Favier
favierp at sofreavia.fr
Fri Apr 11 16:06:59 CEST 2003
I am using the following code to change on the fly the look of some labels in my application which works fine:
Gtk.Rc.Parse_String ("widget ""*MyLabel"" style "" SomeStyleName"");
Style := Gtk.Rc.Get_Style (Txt_Widget);
Set_Style (Twt_Widget, Style);
Now, what I would like to do is to change the style of a lot of labels at the same time. These labels are organised in a table (with HBox and VBox); my first idea was to use the following code:
Gtk.Rc.Parse_String ("widget ""*MyTable*"" style "" SomeStyleName"");
Reset_Rc_Styles (Table);
Unfortunately, this does not trigger any change to the look of my widgets.
What am I missing or doing wrong?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20030411/3a0cae5e/attachment.htm
More information about the gtkada
mailing list