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 524756 - Can't paste text from jedit
Can't paste text from jedit
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-03-28 08:08 UTC by Jon Kåre Hellan
Modified: 2008-03-30 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fall back to text as a last resort (1.43 KB, patch)
2008-03-28 08:10 UTC, Jon Kåre Hellan
none Details | Review

Description Jon Kåre Hellan 2008-03-28 08:08:32 UTC
When trying to paste text from jedit into the cell grid, nothing happens. Pasting into the formula entry area works.

The reason is that jedit is buggy. It exports a nonsense list of targets (=formats) supported.

Less clever apps, and the gtk entry field, just ask for text, and don't care what format the exporting app claim to support. 

Attached: Patch to fall back to text if no suitable target is supported.

There's some code duplication there with text_content_received. I wouldn't worry.
Comment 1 Jon Kåre Hellan 2008-03-28 08:10:01 UTC
Created attachment 108161 [details] [review]
Patch to fall back to text as a last resort
Comment 2 Andreas J. Guelzow 2008-03-28 14:16:36 UTC
Wouldn't it make much more sense to fix jedit rather than trying to work around a jedit bug in gnumeric?
Comment 3 Jon Kåre Hellan 2008-03-28 17:45:33 UTC
Certainly, but 
1. We don't maintain jedit
and
2. It may not be the only one
Comment 4 Morten Welinder 2008-03-29 13:19:19 UTC
Can [do?] we detect the situation and only use the fallback if nothing sane is
advertised?  I am worried that this will cause an extra round-trip or more
is in play.
Comment 5 Jon Kåre Hellan 2008-03-29 18:52:01 UTC
We do. request_text is only called if the callback to request_targets receives no targets.
Comment 6 Morten Welinder 2008-03-30 13:43:11 UTC
Please add a comment as to why this is done and them commit to both branches.
Comment 7 Jon Kåre Hellan 2008-03-30 14:40:35 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.