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 163411 - [win32] pasting rich content fails
[win32] pasting rich content fails
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
1.4.x
Other Windows
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-01-09 03:25 UTC by j.gnome
Modified: 2005-09-19 23:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Prebuilt test binary (libgdk-win32-2.0-0.dll.bz2) (225.05 KB, application/x-bzip)
2005-01-12 19:07 UTC, Ivan Wong
  Details
patch for gdk/win32 and gtk (16.53 KB, patch)
2005-02-20 21:07 UTC, Ivan Wong
none Details | Review

Description j.gnome 2005-01-09 03:25:02 UTC
Pasting text from the clipboard doesn't work (works after F2)

1. Type "aaaaa" in A1
2. Select the text, copy it to the clipboard
3. Select cell A2
4. Paste

Nothing happens.
Expected A2 to become "aaaaa".

After pressing F2, pasting works normally.
Comment 1 j.gnome 2005-01-09 03:29:06 UTC
This also means that pasting from Excel or OpenOffice.org doesn't work.
Comment 2 Ivan Wong 2005-01-12 19:07:45 UTC
Created attachment 35907 [details]
Prebuilt test binary (libgdk-win32-2.0-0.dll.bz2)

With attachment 35906 [details] [review] applied

Or get it from here:

http://www.ivanwong.info/gnumeric/libgdk-win32-2.0-0.dll
Comment 3 j.gnome 2005-01-12 20:31:23 UTC
Thanks, pasting now works. This might be outside the scope of this bug, but in
some cases you get a "Text Import Configuration" screen (actually 3 steps) when
it really isn't necessary:

- Start Gnumeric twice (two separate instances), copy and paste two or more
cells between the two instances: works, but pops up the Text Import
Configuration screen
- Copy from Excel or OOo, paste into Gnumeric: the same.

Copying and pasting inside the same Gnumeric instance works as expected.
Comment 4 Jody Goldberg 2005-02-10 13:54:46 UTC
ivan : sounds like there are still issues with the clipboard code.  Pasting
between gnumeric's should transfer xml, not text 

Is this problem still present in 1.4.2 ?
Comment 5 Ivan Wong 2005-02-16 06:14:42 UTC
> ivan : sounds like there are still issues with the clipboard code.
> Pasting between gnumeric's should transfer xml, not text 
I was aware of the problem and the reason seems to be related to lack of 
support of delay rendering on Win32, I will check it out later.

> Is this problem still present in 1.4.2 ?
Yes :(
Comment 6 Ivan Wong 2005-02-20 21:07:22 UTC
Created attachment 37723 [details] [review]
patch for gdk/win32 and gtk

Prebuilt binaries:

http://www.ivanwong.info/gnumeric/rich_content_fix.tar.bz2

I am not sure whether this fix is optimal or not. It just renders immediately
all target formats on every gtk_clipboard_set_with_owner(). However, delayed
rendering should not be that hard to be implemented on Win32.

This fix only works with 1.4.2-rc2:
http://prdownloads.sf.net/gladewin32/gnumeric-1.4.2-rc2.exe
Comment 7 Ivan Wong 2005-02-22 18:37:47 UTC
Delayed rendering is now fully implemented.

Prebuilt binaries:
http://www.ivanwong.info/gnumeric/delayed_rendering.tar.bz2
Comment 8 Morten Welinder 2005-04-06 13:19:39 UTC
Fixed.