> > I've overriden all that by writing my own gtk_drag_source_set() and > > gtk_drag_source_event_cb(), but this way I have to use private gtk > > structures (for registering dnd site). > > DND source sites don't need to be registered. Oops, I wrote too fast : you're right, on the source side we create the site. > There is no reason to use gtk_drag_source_set() if you don't > want to use gtk_drag_source_set(). > > If you don't want to use gtk_drag_source_set(), simply call > gtk_drag_begin() from your motion handler. > > (BTW - using a different threshhold would be broken. At some > point the GTK+ threshhold will be user configurable - and if > you don't use the GTK+ value, then your drag source won't > follow the user's settings.) OK, thanks a lot for these explanations/warnings. I had a bad feeling about the way I was implementing these things... I have one more question though : in fact what I've done is allowing extended selection on a ctree with drag&drop activated, so you don't have to use the shift key to select and move several rows (now that I've tried this behaviour, I really think it's very user-friendly and a must-have feature - at least it should be an option the user can choose, imho). And I'm looking for a way to do that in the best possible way. As you point out, I'd like to take into account user's settings, and use as most as I can gtk standard functions to achieve that goal, to be compatible with future versions, and not reinvent the wheel :-) Regards, Renaud -- To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
