GtkTextBuffer is merging my tags
- From: Cornelius Hald <hald icandy de>
- To: gtk-list gnome org
- Subject: GtkTextBuffer is merging my tags
- Date: Mon, 06 Apr 2009 16:42:48 +0200
there seems to be some optimization on the GtkTextBuffer which causes
automatic merging of GtkTextTags. Is there a way to turn this off? Or
If I'm doing something like this:
gtk_text_buffer_insert_with_tags_by_name(b, &i, "one\n", -1, "x", NULL);
gtk_text_buffer_insert_with_tags_by_name(b, &i, "two\n", -1, "x", NULL);
gtk_text_buffer_insert_with_tags_by_name(b, &i, "thr\n", -1, "x", NULL);
I would expect it to result in a structure like this:
But instead I get:
I'm sure this is the correct behavior for most formatting tasks, but I
was hoping that I could use GtkTextTags also for saving some semantic
information. In this case I wanted to use it for something like lists.
For example, I would like to have this:
Is it possible to somehow preserve this information and turn the
auto-merging off? I'm using GTK+ 2.10.12 on Linux.
Any help would be highly appreciated!
] [Thread Prev