Re: gtk_drag_dest_set & GtkTargetList*
- From: Owen Taylor <otaylor redhat com>
- To: monkeyiq dingoblue net au
- Cc: gtk-list gnome org
- Subject: Re: gtk_drag_dest_set & GtkTargetList*
- Date: 27 Mar 2001 10:08:57 -0500
monkeyiq dingoblue net au writes:
> Hi,
> I noticed that there is this function, but there seems no version
> that takes the
> (new?) TargetList style.
>
> void gtk_drag_dest_set (GtkWidget *widget,
> GtkDestDefaults flags,
> const GtkTargetEntry *targets,
> gint n_targets,
> GdkDragAction actions);
>
> I can make a version quite easily, but it calls a static function in
> gtk, and so the new
> gtk_drag_dest_set_targetlist() would need to be in gtk+ also for this to
> work.
>
> Are there any plans for such a function or am I doing something wrong?
Well, it wasn't originally there because the targets supplied ares just a
convenience, and you can do all the handling yourself in your
"drag_motion", "drag_drop" handlers if you omit GTK_DEST_DEFAULT_MOTION,
GTK_DEST_DEFAULT_DROP from flags.
OTOH, GTK+-2.0 does add:
GtkTargetList* gtk_drag_dest_get_target_list (GtkWidget *widget);
void gtk_drag_dest_set_target_list (GtkWidget *widget,
GtkTargetList *target_list);
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]