Re: drag and drop in gnome
- From: Owen Taylor <otaylor redhat com>
- To: Svanberg Liss <lisss ydab se>
- Cc: gnome-devel-list gnome org
- Subject: Re: drag and drop in gnome
- Date: 06 Aug 1999 11:58:21 -0400
Svanberg Liss <lisss@ydab.se> writes:
> > GTK_DEST_DEFAULT_DROP
> > If set for a widget, when a drop occurs, GTK+
> > will will check if the drag matches this
> > widget's list of possible targets and
> > actions. If so, GTK+ will call
> > gtk_drag_data_get() on behalf of the
> > widget. Whether or not the drop is succesful,
> > GTK+ will call gtk_drag_finish(). If the
> > action was a move, then if the drag was
> > succesful, then TRUE will be passed for the
> > delete parameter to gtk_drag_finish().
>
> Do the GTK/GDK allow the programmer to play odd tricks with the DnD?
> Say, if I realizes that a widget ( in another application ) accepts drops,
> then I could fake a user drag to that widget from one of mine? Or, I could
> fake a drag request from that widget, to me...
>
> ( Sometimes I have wished that this would be an opportunity. Instead of
> dragging data, I could "attach" it to the pointer, and click the data in
> place. )
Not really. It would be possible to recycle some of
the low-level GDK DND interfaces for this purpose, but
it would be quite a bit of work.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]