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 774726 - GtkTreeView dnd: gtk_drag_finish remove row when reorder sinse 3.20
GtkTreeView dnd: gtk_drag_finish remove row when reorder sinse 3.20
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2016-11-19 17:36 UTC by Matias De lellis
Modified: 2017-01-11 16:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case to described bug. (6.59 KB, text/x-csrc)
2016-11-19 17:36 UTC, Matias De lellis
  Details
Test case to described bug. (6.91 KB, patch)
2016-11-19 22:08 UTC, Matias De lellis
none Details | Review
gtkdnd: Remove unnecessary call (1.08 KB, patch)
2016-11-24 15:31 UTC, Carlos Garnacho
committed Details | Review

Description Matias De lellis 2016-11-19 17:36:22 UTC
Created attachment 340317 [details]
Test case to described bug.

Hi,
I am not sure about the description of the problem, but I have a functional code from 2.24 and off course with minor modifications updated to gtk3.. This code worked correctly until gtk 3.18.. :S

This code implements drag and drop to the playlist of Pragha music player, it must manage drags from the library panel, from file managers, and also reorder the same list..

But since 3.20 when I drag any row, this seems reording but the row is finally deleted..

I wrote a small test case, which only implements the rearrangement of lists.. just checked with a virtual machine of xubuntu 16.4 that until gtk 3.18.9 works correctly.

Also check that commenting on the gtk_drag_finish line all the code works correctly.. I do not understand why either.. :(

Regards,
Matias
Comment 1 Matias De lellis 2016-11-19 22:08:46 UTC
Created attachment 340328 [details] [review]
Test case to described bug.

Fix runtime warning and add some comments..
Comment 2 Carlos Garnacho 2016-11-24 15:31:13 UTC
Created attachment 340690 [details] [review]
gtkdnd: Remove unnecessary call

drag-data-delete is emitted based on the interchange of the
DELETE atom, which may well be set or bypassed locally by
the app. As such emitting it here is not right, the other
paths handling the DELETE atom interchange are still valid
and there.
Comment 3 Matias De lellis 2016-11-24 19:18:40 UTC
Hi Carlos,
The patch seems to solve my problem.. Tested on Fedora 24 with a package created quickly with rpmbuild..


Thanks a lot!.
Regards,
Matias.
Comment 4 Carlos Garnacho 2017-01-09 18:35:44 UTC
Thanks for testing! I'm pushing the patch to 3.22/master.

Attachment 340690 [details] pushed as eb57651 - gtkdnd: Remove unnecessary call
Comment 5 Matias De lellis 2017-01-11 14:29:49 UTC
Hi Carlos,
You can do the backport to 3.20?
I understand that the priority is in 3.22 / 3.90 but still is in maintenance the 3.20 branch and has many commits like to release a new version... ;)
Comment 6 Carlos Garnacho 2017-01-11 15:44:47 UTC
This is certainly backportable, so just pushed the patch to the gtk-3-20 branch. Can't make any guarantees about when/whether a new 3.20.x release will be done :).
Comment 7 Matias De lellis 2017-01-11 16:28:55 UTC
Oh..
Sorry for the spam, but thanks!. =)