Bug 372640 - Can't drag any image file from digikam to GIMP
Summary: Can't drag any image file from digikam to GIMP
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Drag&Drop (show other bugs)
Version: 5.3.0
Platform: openSUSE Linux
: NOR grave
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-18 18:33 UTC by Rafael Linux User
Modified: 2017-08-02 15:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2016-11-18 18:33:56 UTC
When I try to drag any image file from Digikam to GIMP, a "Prohibited" mouse pointer appears, so I CAN'T drop any image from Digikam to GIMP. However, drag and drop works fine from Gwenview or Dolphin to GIMP. I saw this issue is pretend to be solved (bug 22286 from 2001) but it's not.

However, I can drag from Digikam to Krita, so is like there were compatibility issues still in 2016!!!!

I'm using KDE 5.8 on OpenSUSE.
Comment 1 Alexey Putz 2016-11-18 19:01:08 UTC
I tried, and I can confirm the issue.

GIMP 2.8.18

digiKam
Version 4.14.0
Using KDE Development Platform 4.14.22


Kubuntu 16.10
KDE Plasma Version : 5.7.5
KDE Frameworks Version : 5.26.0
Qt Version : 5.6.1
Kernel Version : 4.8.0-22-generic
OS Type: 64-bit
Comment 2 caulier.gilles 2016-11-18 19:09:02 UTC
Can you drag and drop from Dolphin file manager or Gwenview to Gimp ?

Note : testing with DK 4 is not valid, as it's based on Qt4 and is not maintained. DK 5 is the main implementation now and is based on Qt5 which can have serious difference about D&D. this last one is managed by Qt in fact in background.

Gilles Caulier
Comment 3 caulier.gilles 2016-11-18 19:12:36 UTC
DK and Krita are based on Qt5.

Gimp is GTK stuff.

Qt manage the D&D through the XDND standard.

Look "Interoperating with Other Applications" section for details.

http://doc.qt.io/qt-5/dnd.html

So the question is : Gimp support XDND ?

Gilles Caulier
Comment 4 Alexey Putz 2016-11-19 05:16:02 UTC
I suppose that GIMP do support XDND.
Found a quote about XDND:
XDND defines a standard for drag and drop on X11. It is implemented by GTK+.

Dragging from Dolphin to GIMP do work.
About Gwenview, I wasn't able to drag from it as far as primary tool in this program is "navigating" hand, and it doesn't drag anything.

GIMP 2.8.18

Dolphin 16.04.3

Kubuntu 16.10
KDE Plasma Version : 5.7.5
KDE Frameworks Version : 5.26.0
Qt Version : 5.6.1
Kernel Version : 4.8.0-22-generic
OS Type: 64-bit
Comment 5 Rafael Linux User 2016-11-19 05:32:20 UTC
> About Gwenview, I wasn't able to drag from it as far as primary tool in this
> program is "navigating" hand, and it doesn't drag anything.
Well, Gwenview is the "smaller brother" of Digikam, that's to say, you can explore image thumbnails and manipulate them, or view them. If you hit "ESC" key in Gwenview, you will see images thumbnails.
> 
> GIMP 2.8.18
> 
> Dolphin 16.04.3
> 
> Kubuntu 16.10
> KDE Plasma Version : 5.7.5
> KDE Frameworks Version : 5.26.0
> Qt Version : 5.6.1
> Kernel Version : 4.8.0-22-generic
> OS Type: 64-bit
Comment 6 Alexey Putz 2016-11-19 05:34:09 UTC
I 've managed to drag from Gwenview 16.04.3 , I just needed to open thumbnail bar to drag from it.

Digikam 5 is still unable to drag from albums. But can drag to Dolphin from Digikam 5. 

digiKam
Version 5.3.0

Kubuntu 16.10
KDE Plasma Version : 5.7.5
KDE Frameworks Version : 5.26.0
Qt Version : 5.6.1
Kernel Version : 4.8.0-22-generic
OS Type: 64-bit
Comment 7 Rafael Linux User 2016-11-19 21:09:32 UTC
Apparentely, is not a GIMP issue

"XDND - Drag-and-Drop Protocol for the X Window System. XDND defines a standard for drag and drop on X11. It is implemented by GTK+.
See also XDND specification. "

from https://wiki.gimp.org/wiki/Glossary
Comment 8 caulier.gilles 2016-11-20 13:36:31 UTC
I just tested with digiKam AppImage bundle and Gimp. Drag and drop work fine. You just to drop item from DK into right region of Gimp GUI, typically here :

https://www.flickr.com/photos/digikam/31095559876/in/dateposted-public/

If D&D do not work to Gimp canvas, well it's a problem into Gimp to support this action at the right place in Gimp Implementation. Why it support well this action somewhere in Gimp GUI and not in another place ?...

Gilles Caulier
Comment 9 Rafael Linux User 2016-11-20 16:50:48 UTC
(In reply to caulier.gilles from comment #8)
> I just tested with digiKam AppImage bundle and Gimp. Drag and drop work
> fine. You just to drop item from DK into right region of Gimp GUI.
>
Digikam 5.3 works on that way too, that's not a problem.

> If D&D do not work to Gimp canvas, well it's a problem into Gimp to support
> this action at the right place in Gimp Implementation. Why it support well
> this action somewhere in Gimp GUI and not in another place ?...

You forgot to try to D&D from Dolphin or Gwenview to GIMP canvas and it works like a charm. So, why is Digikam failing and not this two programs?

Hi Gilles

> Gilles Caulier
Comment 10 Rafael Linux User 2016-11-20 17:18:10 UTC
This maybe will clear more the Digikam issue, cause we can demonstrate is not a QT vs GTK+ or GIMP application fail. I CAN D&D to GIMP canvas from Krusader, another QT native file manager like Dolphin, that let us D&D to GIMP canvas.
Comment 11 Maik Qualmann 2016-11-20 21:38:08 UTC
Git commit cf95a328cdcdd82c63d85dcbdc4ba5acc0314443 by Maik Qualmann.
Committed on 20/11/2016 at 21:36.
Pushed by mqualmann into branch 'master'.

set QDrag default drop action to Qt::CopyAction
FIXED-IN: 5.4.0

M  +2    -1    NEWS
M  +1    -1    libs/album/albumtreeview.cpp
M  +1    -1    libs/widgets/common/dragdropimplementations.cpp

http://commits.kde.org/digikam/cf95a328cdcdd82c63d85dcbdc4ba5acc0314443