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 391730 - Bizarre cut/paste behavior
Bizarre cut/paste behavior
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-01-02 02:35 UTC by Matthew Barnes
Modified: 2008-02-19 19:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed gtkhtml patch (2.81 KB, patch)
2008-02-18 18:40 UTC, Milan Crha
committed Details | Review

Description Matthew Barnes 2007-01-02 02:35:02 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.
Comment 1 Milan Crha 2008-02-11 17:33:25 UTC
Maybe fixed as a side-effect of fix for bug #258374?
Comment 2 Milan Crha 2008-02-18 18:40:24 UTC
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.
Comment 3 Srinivasa Ragavan 2008-02-19 17:16:14 UTC
Milan seem fine to me. Just test and commit.
Comment 4 Milan Crha 2008-02-19 19:15:40 UTC
Committed to trunk. Committed revision 8746.