After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 79868 - GtkTextView clipboard pasting and tags
GtkTextView clipboard pasting and tags
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.0.x
Other Linux
: Normal normal
: Medium API
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-04-25 14:25 UTC by Nicolas Setton
Modified: 2016-03-06 15:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolas Setton 2002-04-25 14:25:43 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.
Comment 1 Arnaud Charlet 2002-05-03 16:50:41 UTC
May I suggest some reasonable milestone for this report ?

Arno
Comment 2 Owen Taylor 2002-05-03 18:20:15 UTC
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.
Comment 3 Havoc Pennington 2002-05-03 18:39:41 UTC
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.
Comment 4 Owen Taylor 2002-11-14 06:18:13 UTC
No API suggestion, no patch, moving to 2.4 API freeze. 
(2.2 will freeze this week)
Comment 5 Olivier Sessink 2004-07-23 10:11:20 UTC
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.
Comment 6 Matthias Clasen 2004-12-17 04:08:45 UTC
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. 
Comment 7 Matthias Clasen 2016-03-06 15:58:24 UTC
nothing happened to this in more than a decade