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 701066 - Drag and drop of layer from one canvas to another broken in single window mode
Drag and drop of layer from one canvas to another broken in single window mode
Status: RESOLVED DUPLICATE of bug 676522
Product: GIMP
Classification: Other
Component: User Interface
git master
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2013-05-27 00:59 UTC by Jehan
Modified: 2014-02-04 21:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jehan 2013-05-27 00:59:49 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? :-)
Comment 1 Michael Natterer 2013-05-27 07:30:31 UTC
I have a patch stached for this, incomplete and forgotten, will revisit it...
Comment 2 Jehan 2013-05-27 11:59:24 UTC
Awesome. :-) Will wait for your patch then.
Comment 3 Jehan 2013-07-07 15:16:50 UTC
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
Comment 4 Michael Natterer 2013-07-08 00:18:59 UTC
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 ;)
Comment 5 Michael Natterer 2014-02-04 21:37:34 UTC
This is the same as bug 676522

*** This bug has been marked as a duplicate of bug 676522 ***