[9655] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: GTK eval: internationalization and drag/drop

daemon@ATHENA.MIT.EDU (Owen Taylor)
Thu Oct 29 21:19:53 1998

To: gtk-list@redhat.com
From: Owen Taylor <otaylor@redhat.com>
Date: 29 Oct 1998 21:19:45 -0500
In-Reply-To: Kenneth Albanowski's message of "Wed, 28 Oct 1998 18:55:33 -0500 (EST)"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Kenneth Albanowski <kjahds@kjahds.com> writes:

> On 27 Oct 1998, Owen Taylor wrote:
> 
> > There is a "drag_leave" signal. The "drag_motion" signal doubles
> > as a "drag_enter" - the first time you get it, it is an
> > enter.
> 
> Ah, that's why I didn't spot it. Sounds a little clumsy, but as long as it
> works.

It's done this way because a widget can have multiple drop
zones internal to it, and the drop zones might not be
the entire widget - whether the drop is inside the widget
is determined by the boolean return value of "drag_motion" -
so a "drag_enter" separate from a "drag_motion" doesn't really
make sense.

(If you specify GTK_DRAG_DEFAULT_MOTION then the drop zone corresponds
to the widget, then the drop zone is the entire widget, and GTK+
handles the return value for you, but it doesn't have to be that
simple)

Regards,
                                        Owen

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post