cancelling a drag from a widget
- From: Elliott Hughes <Elliott Hughes genedata com>
- To: gtk-list redhat com
- Subject: cancelling a drag from a widget
- Date: Tue, 30 Nov 1999 13:32:06 +0100 (CET)
i've written a widget where, if the user uses gtk_drag_source_set,
i only want a drag to start from certain `active' areas within the
widget. how can i do this? basically, i want to check the x and
y start coordinates of the drag from within drag_start, and tell
gtk not to initiate a drag if it doesn't make sense from that part
of the component.
i can get the relevant x and y coordinates from the button_press
that comes before drag_start, but what i don't know how to do is
prevent the drag. certainly, it seems that calling gtk_drag_finish
from within drag_start causes trouble.
does this need drag_start to return gboolean, and have the code
in gtkdnd.c check whether or not to continue, or is it possible in
the system as it stands?
--
"As the Chinese say, 1001 words is worth more than a picture."
-- John McCarthy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]