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 315528 - Drag and drop support
Drag and drop support
Status: RESOLVED FIXED
Product: meld
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Stephen Kennedy
Stephen Kennedy
Depends on:
Blocks:
 
 
Reported: 2005-09-08 12:04 UTC by Trond Andersen
Modified: 2011-01-20 22:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Small patch which enables Drag And Drop (2.86 KB, patch)
2007-04-17 07:57 UTC, Trond Andersen
committed Details | Review

Description Trond Andersen 2005-09-08 12:04:26 UTC
Meld should have Drag and Drop support.

Example: I would like to choose three files in Nautilus and then drop them onto
Meld. Meld should then figure out that this is a three file comparison - if two
files, Meld discovers this too. The same with directories. 

If I just drop a single directory, Meld should find out if this is a CVS or
Subversion directory. If it isn't Meld probably should give an error message
Comment 1 Trond Andersen 2006-06-01 07:46:06 UTC
I could be interested in contribute to this issue and I have been looking at the DnD API for GTK, but I'm a bit unsure where to start with this issue when it comes to Meld. If anyone would like to help/mentor me, I might be able to implement this feature. 
Comment 2 Jean-François Fortin Tam 2006-10-18 21:10:00 UTC
I would really *love* this feature. No more silly file chooser dialogs. Just pure usability :) this will solve World Hunger, I am certain! It's a shame I can't implement that myself (IANAD).
Comment 3 Trond Andersen 2007-04-17 07:57:20 UTC
Created attachment 86487 [details] [review]
Small patch which enables Drag And Drop

This patch have some issues:
- Uses gnomevfs module which might be problematic since Meld is a GTK app (see misc.py). The patch uses only a simple function (get_local_path_from_uri) and this could probably be implemented without using gnomevfs.
- The "grey area" when there isn't any open diffs doesn't support DnD. One must drag to the toolbar. How do I fix this?
- When dragging one file, I would like to open the "new" dialog so I can choose the other file.
Comment 4 Jack Tanner 2007-06-21 22:12:11 UTC
bug 350665 was just fixed, which should be relevant to Trond's patch in comment #3.
Comment 5 Trond Andersen 2009-01-30 13:36:51 UTC
Not sure if there is an interest for adding drag-and-drop support. If Meld require newer version of g* libraries, we could probably avoid the gnomevfs dependency with using gvfs.
Comment 6 Stephen Kennedy 2009-02-01 13:01:02 UTC
Thanks Trond, I've committed your patch. One strangeness I've found is that gnome desktop entries "x-nautilus-desktop://..." cause a runtime error in gnomevfs.get_local_path_from_uri.

How should this be correctly handled?
Comment 7 Kalin Agrawal 2009-06-17 01:18:26 UTC
This does not seem to be working in 
Meld 1.2.
Gnome 2.26.1
Nautilus 2.26.2
(via distribution Ubuntu 9.04)
Comment 8 Trond Andersen 2009-09-16 18:45:14 UTC
I've been running on Ubuntu 9.04 without any problems towards both two files and a subversion directory. Could anyone give me an scenario which provokes an crash.
Comment 9 Kai Willadsen 2011-01-20 22:21:07 UTC
This is working for me in current Meld, and should have been working for a while. The gnomevfs issue is no longer relevant, as we use gio from Meld 1.5.0 onwards. If there are any outstanding issues with drag and drop, please open new bugs.