Hello All,
What is the correct (and simple) way of being able to customize a tag table at runtime thru some .rc (or any textual configuration) files?
I am doing some stuff like the following to fill a tagtable (code sort of stolen from a gtk demo textview.c file)
Code:
////////////////
//
tag = gtk_text_tag_new ("heading");
g_object_set (tag,
"weight", PANGO_WEIGHT_BOLD, "size", 14 * PANGO_SCALE, NULL);
gtk_text_tag_table_add (tagtable, tag);
//
tag = gtk_text_tag_new ("bold");
g_object_set (tag, "weight", PANGO_WEIGHT_BOLD, NULL);
gtk_text_tag_table_add (tagtable, tag);
//
tag = gtk_text_tag_new ("italic");
g_object_set (tag, "style", PANGO_STYLE_ITALIC, NULL);
gtk_text_tag_table_add (tagtable, tag);
//
tag = gtk_text_tag_new ("fixed");
g_object_set (tag, "family", "monospace", NULL);
//
tag = gtk_text_tag_new ("xxsmall");
g_object_set (tag, "scale", PANGO_SCALE_XX_SMALL, NULL);
gtk_text_tag_table_add (tagtable, tag);
//
Is there any quick and easy way to tell GTK to override these builtin settings by those in some rc (or other configuration) files? I want to avoid coding my own parser, etc...
Regards
_________________
Basile Starynkevitch (France)
http://starynkevitch.net/Basile/