runtime customization of TextBuffer tags



Hello All

(FWIW, I also asked this on http://gtkforums.com/about974.html without success)

Is there any easy way to customize or override the appereance of tags in a GtkTextTagTable. I am filling it with code like

  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);
  //

and I would be delighted to be able to override these settings thru some gtk rc file.

Regards.
--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]