GtkTextTag



I got this from Gtk:

Gtk-ERROR **: file gtktexttag.c: line 1916
(_gtk_text_attributes_fill_from_tags): assertion failed:
(tags[n]->priority > tags[n-1]->priority)

  It appears that GtkTextBuffer doesn't like tags that don't belong to a
GtkTextTagTable.
  As a workaround, I added all my tags to the text buffer's tag table. It
worked. Unfortunately I need to add the same set of tags to a different
buffer, but I can't.
  What should I do? I already thought of duplicating (copying) the tags,
but they are GObjects; there is no gtk_text_tag_copy().
  It seems to me I need to either:
	1. Use tags without tag tables, or
	2. Copy tags
  Any ideas? Thanks in advance.


-- 
Gustavo Joćo Alves Marques Carneiro <ee96090 fe up pt>
 __                          _
/__      _ _|_  _.     _    /   _. ._ ._   _  o ._ _
\_| |_| _>  |_ (_| \/ (_)   \_ (_| |  | | (/_ | | (_)





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