GNOME Bugzilla – Bug 79868
GtkTextView clipboard pasting and tags
Last modified: 2016-03-06 15:58:24 UTC
Hello, When you copy/paste text in the GtkTextView, the tags (for color, and so on) are pasted as well, and there seems to be no straightforward way of disabling that. Am I mistaken ? Thanks a lot ! Nico, for the GtkAda team.
May I suggest some reasonable milestone for this report ? Arno
All bugs with a milestone of --- will get some other milestone before 2.0.3 goes out. (I'll make sure that Havoc does that for all text widget bugs.) A milestone of '---' is the incoming state.
This is an API addition as far as I can tell, so would need to make 2.2 if you want it in the near future.
No API suggestion, no patch, moving to 2.4 API freeze. (2.2 will freeze this week)
I also would like to see this option in gtk. Here is an API suggestion: We add a boolean property 'copy-with-tags' to GtkTextView, it defaults to 'TRUE' void gtk_text_view_set_copy_with_tag(GtkTextView *text_view, gboolean copy_with_tag); gboolean gtk_text_view_get_copy_with_tag(GtkTextView *text_view); if it is set FALSE all copy actions (cut & paste and copy & paste) will only insert text, no tags. If set to TRUE also the tags (color etc.) will be copied.
I don't think this is the right approach. I think the text view should offer a rich text target, and the other text targets should only yield the markup-less text content.
nothing happened to this in more than a decade