GNOME Bugzilla – Bug 701066
Drag and drop of layer from one canvas to another broken in single window mode
Last modified: 2014-02-04 21:37:34 UTC
When you click a layer (in the layer list) and drop it in a canvas, it duplicates the layer. It can be in the canvas of the same image (so you duplicate the layer in the same image), or in another image. The feature works well in multi window mode. But in single window mode, it works when you drop the layer in the original canvas, but if you drop in another canvas, it fails. Reproduction: - have 2 images opened in single window mode; - select a layer in the layer list of the current image and drag it; - without releasing the dragging, hover over the tab of the other image, after a very short time, it will switch to the other image; - go over the canvas of this second image and drop the layer. Expected: the layer should be copied to this other image. What happens: nothing. I tried to debug it but could not find the exact problem yet. Maybe someone who knows better GIMP or GTK+ can help me or even patch the problem. I am not sure if the bug is in GIMP or GTK+ either. Basically in the single window mode, when you switch shell tabs, "drag-data-get" and "drag-data-received" signals are not emitted (the ones before and after are emitted though). In particular the problem would then be with "drag-data-get" in particular (if the selection data is not "got", it's normal it is not received), but I got stuck when trying to understand what can be the difference between both modes. There does not seem to be any code specific to single-window-mode for drag'n drop into canvases. Any help? :-)
I have a patch stached for this, incomplete and forgotten, will revisit it...
Awesome. :-) Will wait for your patch then.
Hey Mitch, you said you had an incomplete patch, work in progress. So I hope you don't mind if I set you as assignee. I'm sure you'll always forget otherwise. :p
I'm sure it makes no difference, because we never used assigning bugs, I don't even know how to distinguish them because I get all GIMP bug mails anyway ;)
This is the same as bug 676522 *** This bug has been marked as a duplicate of bug 676522 ***