GNOME Bugzilla – Bug 157123
drops on widgets inside a GtkSocket/GtkPlug broken
Last modified: 2004-12-22 21:47:04 UTC
It seems that drops on widgets inside a GtkSocket/GtkPlug don't work with the HEAD CVS. Among other things, this breaks DnD to panel applets. I'll attach a minimal test case to the bug report. Simply compile the plugapp.c and socketapp.c programs in the same directory and run socketapp (which will run plugapp). Then try dragging a file from Nautilus to each of the buttons. With GTK 2.4, both buttons act as drag destinations. With CVS HEAD, only the button outside of the plug acts as a drag destination.
Created attachment 33336 [details] plugapp.c
Created attachment 33338 [details] socketapp.c
Created attachment 33352 [details] [review] Here is a patch
I just applied this patch here, and it fixes the DnD problem for the test program attached to this bug, and also for applets on the panel.
2004-11-03 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the case that the protocol version in the context is not set yet. (#157123, James Henstridge)