Re: [gtk-osx-users] Pasting images from clipboard



Just tried to build new GTK, but the build fails when applying patches to GTK:
"Reversed (or previously applied) patch detected!  Assume -R?"

More details are given below.

Regards,
  Miroslav

xzcat -d "/Users/helix/gtk/source/pkgs/gtk+-2.24.29.tar.xz" | tar xf -
*** Applying patch 
http://git.gnome.org/browse/gtk-osx/plain/patches/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch
 *** [29/38]
patch -p1 < "/Users/helix/.cache/jhbuild/0008-Implement-GtkDragSourceOwner-pasteboardChangedOwner.patch"
patching file gtk/gtkdnd-quartz.c
Hunk #2 succeeded at 174 (offset 1 line).
*** Applying patch 
http://git.gnome.org/browse/gtk-osx/plain/patches/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch 
*** [29/38]
patch -p1 < "/Users/helix/.cache/jhbuild/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch"
patching file gdk/quartz/gdkdnd-quartz.c
patching file gtk/gtkdnd-quartz.c
Hunk #1 succeeded at 281 (offset 11 lines).
Hunk #2 succeeded at 353 (offset 17 lines).
Hunk #3 succeeded at 1928 (offset 11 lines).
Hunk #4 succeeded at 1943 (offset 11 lines).
*** Applying patch http://git.gnome.org/browse/gtk-osx/plain/patches/gtk+-2-m4-creation.patch *** [29/38]
patch -p1 < "/Users/helix/.cache/jhbuild/gtk+-2-m4-creation.patch"
patching file m4/.bogus
*** Applying patch 
http://git.gnome.org/browse/gtk-osx/plain/patches/0001-Bug-707945-GTK2-Quartz-typeahead-find-in-GtkTreeView.patch
 *** [29/38]
patch -p1 < "/Users/helix/.cache/jhbuild/0001-Bug-707945-GTK2-Quartz-typeahead-find-in-GtkTreeView.patch"
patching file modules/input/imquartz.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] y
Hunk #1 FAILED at 199.
Hunk #2 succeeded at 201 (offset -4 lines).
Hunk #3 succeeded at 229 (offset -4 lines).
1 out of 3 hunks FAILED -- saving rejects to file modules/input/imquartz.c.rej

________________________________________
From: John Ralls <jralls ceridwen us>
Sent: Thursday, February 11, 2016 11:11 PM
To: Miroslav Rajcic
Cc: gtk-osx-users-list gnome org
Subject: Re: [gtk-osx-users] Pasting images from clipboard

On Feb 10, 2016, at 6:23 AM, Miroslav Rajcic <mrajcic hotmail com> wrote:

I created a small sample, and I can still reproduce the issue.
Code features "Paste Image" button, that tries to fetch image from the clipboard if available.

On my Mac Mini (OS X 10.7.5) I always see message box "ERROR: Failed to get image from the clipboard!", 
telling me that there is an image on clipboard, but it failed to fetch it.
Bug recipe is to open some .jpg or .png image in some picture viewer app and copy it to clipboard, then 
press "Paste image" button.

Entire sample program code is given below.
Additionally, I have put entire sample project and a sample binary installer (created with "make 
osxinstaller" from sources) online at:
http://notecase.sourceforge.net/temp/paste_sample_src.zip
http://notecase.sourceforge.net/temp/test-1.0.pkg

Miroslav,

Thanks for the test case. That made it really easy to find the problem, which I've fixed and pushed to 
gtk-2-24, gtk-3-18, and master. The gtk-2-24 commit is 99db416 and the commit message explains the problem.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]