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 158613 - GtkTreeRowReference does not work with reorderable treeview
GtkTreeRowReference does not work with reorderable treeview
Status: RESOLVED DUPLICATE of bug 72043
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2004-11-18 12:18 UTC by Bastien Nocera
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
treerow.c (3.60 KB, text/plain)
2004-11-18 12:28 UTC, Bastien Nocera
Details

Description Bastien Nocera 2004-11-18 12:18:19 UTC
Test case attached below.

When the mouse button is pressed, we save the first item in the ListStore as a
GtkTreeRowReference. When the drag ends, we set try to get the row reference as
a path again.

Move the first item in the list to see the problem straight away. The output is:
** Message: Path: Foo
** Message: setting current 0 0x82031e8
** Message: drag_begin_cb
** Message: button_release_cb: dragged 1
** Message: drag_end_cb: dragged 1
** Message: path 0x82031e8 not valid
Comment 1 Bastien Nocera 2004-11-18 12:28:14 UTC
Created attachment 33901 [details]
treerow.c
Comment 2 Matthias Clasen 2004-11-19 03:33:23 UTC
This happens because dnd is implemented as delete-insert pair. 
We already have a bug for that, so I'm duping this.

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