GNOME Bugzilla – Bug 391730
Bizarre cut/paste behavior
Last modified: 2008-02-19 19:15:40 UTC
Forwarding from a downstream bug report: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=145314 (I've not been able to reproduce this behavior myself, but several users confirmed it downstream on versions as far back as 2.0.4.) Evolution often gets itself into a state where it will paste the wrong thing when the middle mouse button is pressed. When it's broken, a middle-click in a composer window will paste something which was previously deleted from that composer window (usually by selecting it and then just pressing backspace, iirc). Even re-selecting fresh text elsewhere (in either Evolution or other X clients), and pressing the middle button again, doesn't paste the correct thing. ... It gets better. Sometimes when I paste into 2.0.4-1 it just dies, instead. <backtrace snipped> ... I haven't seen the SEGV recently but the broken cut'n'paste behaviour persists in FC5. I have a composer window on my screen at the moment... I select some text which I want to copy with in the mail, middle click where I want it... and get nothing inserted. Middle-clicking in a gnome-terminal also gives me nothing. It seems to be the 'select' side which is broken in Evolution.
Maybe fixed as a side-effect of fix for bug #258374?
Created attachment 105526 [details] [review] proposed gtkhtml patch for gtkhtml; Some parts were not fixed in above bug, thus this patch. I also fixed an issue when you drag cursor in empty composer window, on drop it showed a runtime warning on the console: (evolution:9124): Gtk-CRITICAL **: gtk_clipboard_set_text: assertion `text != NULL' failed The part about "deleting text with backspace and middle click pastes last selected text again" is correct behavior. I tested it in terminal window and the text is kept in the buffer until other text is selected, thus this is not a bug.
Milan seem fine to me. Just test and commit.
Committed to trunk. Committed revision 8746.