Re: TextTags not removed from tag table
- From: "Gilzad Hamuni" <gilli4 gmx net>
- To: "Gilzad Hamuni" <gilli4 gmx net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: TextTags not removed from tag table
- Date: Fri, 8 May 2015 14:48:52 +0200
I notice among using attachments I violated a bunch of the mailer's rules, sorry. Hopefully not this time.
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"
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]