GNOME Bugzilla – Bug 641924
Reorderable property of GtkTreeView does not work on Windows
Last modified: 2011-09-19 11:06:13 UTC
The tests I did with this flag just worked into linux. I don't know why, when I try to use drag and drop into windows it is always canceled with the installer pygtk-all-in-one-2.22.6.win32-py2.6.msi but with the installers pygtk-2.16.0+glade.win32-py2.6.exe pygobject-2.20.0.win32-py2.6.exe and pycairo-1.8.6.win32-py2.6.exe it works fine.. I setted this flag with glade, but I think the problem is not with glade.. I tested it with python 2.6.5 version (I don't know if it matters) and with Windows XP OS
Created attachment 180463 [details] glade file
Created attachment 180464 [details] python file
I added the files that reproduce the bug at windows (at linux the same code works well)
Created attachment 181117 [details] Simple test in c This simple test in c uses the same glade file (attachment 180463 [details]) and has the same problem with gtk+-2.22 on windows. I suspect this is a regression in the win32 GDK backend somewhere... compile test.c as follows: gcc -Wall -ggdb test.c -o test `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` For what it's worth, manually handling dnd as shown in http://git.gnome.org/browse/pygtk/tree/examples/gtk/treeview_dnd.py still works fine.
I confirm a crash with git version of gtk+ (3.1.2+) while dnd in C example from Dieter Verfaillie.
I confirm this bug which affects also iconView. About the comment above : For what it's worth, manually handling dnd as shown in http://git.gnome.org/browse/pygtk/tree/examples/gtk/treeview_dnd.py still works fine. Yes, it works, because it is using drag_source_set and drag_dest_set. But code written with enable_model_drag_source and enable_model_drag_dest does not work (example : treeviewdnd.py, in the examples of the Python-Gtk tutorial). I mention it just in case it could help finding the problem.
*** This bug has been marked as a duplicate of bug 616544 ***