Re: Passing reference or binary data via drag&drop/clipboard?



Kevin Ryde wrote:
Of course it can only work within a single running process.  I think
there's some flags to drag_dest_find_target (hiding in Gtk2::Widget) to
check the same app or same widget (Gtk2::TargetList).

The target flags seem to be documented at
<http://library.gnome.org/devel/gtk/unstable/gtk-Drag-and-Drop.html#GtkTargetFlags>.

GTK_TARGET_SAME_APP
        If this is set, the target will only be selected for drags
        within a single application.

GTK_TARGET_SAME_WIDGET
        If this is set, the target will only be selected for drags
        within a single widget.

GTK_TARGET_OTHER_APP
        If this is set, the target will not be selected for drags within
        a single application. Since 2.12

GTK_TARGET_OTHER_WIDGET
        If this is set, the target will not be selected for drags
        withing a single widget. Since 2.12

which suggests that DnD can work across applications. I don't remember
about trees in particular though.

Cheers, Dave



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]