[EMAIL PROTECTED] 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
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list