This bug is caused by some incorrect logic when the checkClipboard()
function calls the processContent() function (both in src/main.c).  If
the call to gtk_clipboard_wait_for_text() returned a NULL (because the
clipboard item could not be changed into plain text), the NULL gets
passed to processContent(), and that function resets the clipboard to
the last-known text item, obliterating all non-text clipboard items as
quickly as they are found.

I'll report this item upstream.  In the meantime, if a quick fix is
desired, the processContent() function could be changed to ignore a NULL
newContent arg.  That would cause Glipper to ignore all non-text items,
with the only downside being that the drop-down menu would show the
last-known plain-text item as being current even though no plain-text is
available to paste (but that's better than the current behavior).

** Changed in: glipper (Ubuntu)
       Status: Unconfirmed => Confirmed

-- 
Glipper makes copy/pasting of images in OpenOffice impossible
https://bugs.launchpad.net/bugs/104432
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to