I notice attachments will be rejected, so these few lines shall explain the 
trouble I have:

tag = buffer.create_tag("tag_0");//create a texttag inside of the text buffer
buffer.apply_tag(tag, lastIter, currentIter);//apply the tag to some given text.
buffer.remove_all_tags(startIter, endIter);//remove any created tag from the 
buffer.
buffer.delete(ref startIter, ref endIter);//remove the buffer's content.
tag = buffer.create_tag("tag_0");//warning: A tag named 'tag_0' is already in 
the tag table.

Here's a more complete and compilable pastebin url:
http://pastebin.com/BsTfPM5b

Thanks again.

gilzad

> Gesendet: Freitag, 08. Mai 2015 um 12:00 Uhr
> Von: "Gilzad Hamuni" <gil...@gmx.net>
> An: gtk-app-devel-list@gnome.org
> Betreff: TextTags not removed from tag table
>
> Hi list,
> 
> in order to keep my memory sane, I try to delete all text tags whenever I 
> clear the text buffer of a text view (buffer.remove_all_tags(startIter, 
> endIter)).
> However, I get the warning that the tags I deleted are still in the tag table 
> ("A tag named 'tag_1' is already in the tag table."). I searched the net but 
> couldn't find any hints on what I could be doing wrong.
> 
> I've attached a vala-example of my approach to this mail.
> 
> Thanks in advance for any help.
> 
> gilzad
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to