GNOME Bugzilla – Bug 335881
Ctrl-V Paste doesn't work in the Task List
Last modified: 2013-09-13 00:58:35 UTC
Pasting text by using the shortcut Ctrl-V doesn't work inside the task list. Middle-click paste works fine, though.
I can confirm this bug, I should note that I can paste from the text of an email, but not from things outside evolution (text files, webpages etc.)
Confirming as per comment 1. For me, Ctrl-V doesn't even work from an email.
*** Bug 343974 has been marked as a duplicate of this bug. ***
i think that this bug is not valid .... because cntrl-V is supposed to paste tasks and not text... there is a clear conflict of functionality... u might say that it should copy both.. but it cant... because we use an GTK+ API to get the content in the clipboard and only if the content is a task it will be pasted ... why it doesnt paste text is the API cannot convert the task into a text format...
further observations on this : i can use cntrl-V to paste text when i access the tasks from the calendar component of evolution i, however cant paste tasks using cntrl-V... which is correct....because from the calendar component you are supposed to paste text and not tasks and from the task component , we are supposed to paste tasks and not text... srini, i suggest this bug be declared invalid ....
Created attachment 91594 [details] [review] proposed patch almost the same as the patch in bug 350725
Created attachment 91608 [details] [review] revised patch sorry, previous patch causes memory leak.
when reviewing this, also see bug 455862 for memos and bug 350725. hiroyuki: great patches, thanks so much (from a user like me), because these issues are highly visible.
The patch works just fine !! I have a small doubt, + } else { + gtk_clipboard_set_can_store (clipboard, target_types + 1, n_target_types - 1); + } Why is this set when copying to clip board fails ?
Actually, I do not know exactly the reason, but GTK+ does. see http://svn.gnome.org/viewcvs/gtk%2B/trunk/gtk/gtktextbuffer.c?view=diff&r1=11666&r2=11667 Maybe support for clipboard manager.
I am not sure how usage of set_can_store function helps. I guess if the setting data in clipboard fails, this will enable the cp manager it some other temporary area so that it remains even when teh application exits. Committed the fix.