[Gtk] drag & drop restrictions



Hello,

I saw the implementation of drag&drog in gdk/gtk. It seems to work,
but I think there is a strange limitation : when the ButtonRelease
event occurs, there are these tests [in gdk.c, line 1560 (approx)] :

if (((abs (xevent->xbutton.x_root - dnd_startx) > DRAG_THRESHHOLD)
    || (abs (xevent->xbutton.y_root - dnd_starty) > DRAG_THRESHHOLD)
	[...]

For example, I cannot dnd a button to itself. Ok, it's stupid :) but
this test could be a nuisance in a list widget (where distance between
two listitem widgets are short)...

I've deleted these tests on my gdk, it works fine.

Secondly, I've noticed another problem : when you drag an object for
the first time, the cursor doesn't change (but the dnd works). 
Any solution ?

Thanx for all,
-- Thomas NOEL <thomas@minet.net>
   "C is quirky, flawed, and an enormous success." - Dennis M. Ritchie



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]