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 70479 - DnD with multiple selected items won't work
DnD with multiple selected items won't work
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
3.1.x
Other All
: Normal normal
: Medium API
Assigned To: gtktreeview-bugs
gtktreeview-bugs
: 157441 362572 (view as bug list)
Depends on:
Blocks: 349256 514106
 
 
Reported: 2002-02-04 09:06 UTC by Anders Carlsson
Modified: 2018-05-02 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Anders Carlsson 2002-02-04 09:06:22 UTC
There's no way to drag multiple selected items from a GtkTreeView. I think
this can be solved without adding any API.
Comment 1 Kristian Rietveld 2002-02-21 22:44:26 UTC
No time for 2.0.0 -- punting to 2.2.
Comment 2 Kristian Rietveld 2002-05-02 19:40:44 UTC
Reassigning bugs to new component owner. Sorry for the flood.
Comment 3 renaud_chaillat 2003-08-26 12:13:13 UTC
What is the current progress on this bug ?
Will the work in egg be merged ?

I had taken a look at egg and it looked to be the right way, except 
for one thing: dnd was triggered only when clicking on a previously 
already selected row, which is wrong when you want to move a single 
row. I think you have to trigger dnd when moving mouse while keeping 
a mouse button pressed _in any case_; of course there is a close
relationship with selection handling, where you end up selecting a row 
at button release instead of button press when dnd is not triggered
(not moving the mouse).

Hope this is clear and might be helpful :-)


Comment 4 Kristian Rietveld 2003-11-16 15:03:39 UTC
IIRC the current idea is to base a multi item DnD implementation on
the work done in Nautilus. I will leave the milestone on "future" for
now, but I am really going to look what I can do for 2.4. So who knows ;).
Comment 5 renaud_chaillat 2003-11-25 23:06:20 UTC
:-)
It's great to hear that you still have this feature waiting 
somewhere in your mind ;-)

I know there are lots of more important features to be done, 
and all of you guys do a really great job, but I've been waiting 
for this one for _years_, no kidding ! :-)

Thanks a lot for having taken some time to update this bug status.


Comment 6 Kristian Rietveld 2003-12-20 22:59:00 UTC
I am working on this now. I am totally going to try to get this in 2.4.
Comment 7 Kristian Rietveld 2003-12-21 23:01:17 UTC
First try at a patch:

http://mail.gnome.org/archives/gtk-devel-list/2003-December/msg00160.html
Comment 8 renaud_chaillat 2004-01-29 08:45:26 UTC
Your patch didn't seem to bring about any reaction, is it postponed 
to 2.6 ? Strange that such a useful feature is mostly ignored...
Comment 9 Matthias Clasen 2004-03-04 11:09:48 UTC
I guess we dropped the ball on this one, too...
Comment 10 Matthias Clasen 2004-07-24 17:40:22 UTC
Some comments on kris' patch here:
http://mail.gnome.org/archives/gtk-devel-list/2004-February/msg00232.html
Comment 11 renaud_chaillat 2004-09-02 09:30:02 UTC
Any progress on this matter ?
Comment 12 Matthias Clasen 2004-11-05 16:13:50 UTC
*** Bug 157441 has been marked as a duplicate of this bug. ***
Comment 13 Erik Grinaker 2004-12-13 12:46:06 UTC
Any chance of getting this in for 2.6? Seems somewhat essential.
Comment 14 Erik Grinaker 2004-12-13 12:47:13 UTC
Hm, I meant 2.8 of course - sorry for the spam
Comment 15 Matthias Clasen 2006-06-19 19:31:09 UTC
didn't make it into 2.10 either :-(
Comment 16 gbz 2006-12-05 21:47:32 UTC
*** Bug 362572 has been marked as a duplicate of this bug. ***
Comment 17 Philippe Chaintreuil 2007-06-25 15:33:19 UTC
I have the feeling that this won't make it into 2.12 either, right?  =(
Comment 18 Kristian Rietveld 2007-06-25 15:36:42 UTC
No.

I've been wanting to work on this for a very, very long time.  But up until today I still haven't had the chance to ...
Comment 19 Philippe Chaintreuil 2007-08-27 12:36:43 UTC
> I've been wanting to work on this for a very, very long time.
> But up until today I still haven't had the chance to ...

So, did you ever get a chance to work on it?
Comment 20 Balazs Scheidler 2007-10-11 06:56:36 UTC
This is a me too, I'd need such a functionality too.
Comment 21 Tirpak Balazs 2008-02-04 10:35:10 UTC
Any progress on this?
Comment 22 Kristian Rietveld 2008-05-28 09:39:04 UTC
Not yet, but it is very, very high on my list -- and this is no easy task at all (I tried 4 years ago ;).  Once University settles down ...


Note that this does not mean that it is not possible at all to do DnD with multiple selected items, you "only" have to write your own implementation of it.  Epiphany has such an implementation in its history/bookmarks windows.  See the code of the EphyNodeView.
Comment 23 Kristian Rietveld 2008-09-08 20:30:52 UTC
(Over the Summer I've started rewriting the drag and drop guts of GtkTreeView.  As I am doing this in my spare time I cannot really say how long it will take before this is finished, but it looks promising).

Comment 24 Kristian Rietveld 2008-09-30 13:21:04 UTC
(In the last 1.5 week some good progress has been made.  I hope to hit the API review phase within a month).
Comment 25 Philippe Chaintreuil 2009-09-04 15:20:40 UTC
Kristian, it's been almost a year, what's been going on?
Comment 26 Javier Jardón (IRC: jjardon) 2010-04-01 01:42:03 UTC
Kristian,

What is the status of this?
Here: http://people.gnome.org/~fpeters/reports/eggs.html you can see that there are several apps still using eggtreemultidnd.c:
  * brasero
  * epiphany
  * file-roller
  * nautilus
  * seahorse

Is there any plan to merge this in this cycle? Or we should postpone it for GTK + 3.2?
Comment 27 Kristian Rietveld 2012-07-14 15:03:22 UTC
I never got around to working on this again -- and I never will unfortunately.

I have documented my thoughts and my work in progress patch from 2008 on a wiki page in case anybody wants to pick this up:

https://live.gnome.org/GTK%2B/GtkTreeView/Ideas#Revamp_GtkTreeView_Drag-and-Drop_implementation_.28has-patch.29
Comment 28 Matthias Clasen 2018-02-10 03:26:43 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.
Comment 29 Bastien Nocera 2018-02-13 09:45:07 UTC
Still relevant, eggtreemultidnd.c is still used.
Comment 30 GNOME Infrastructure Team 2018-05-02 13:38:26 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/217.