Re: Gtk3 and drag'n'drop



On 24/02/18 13:30, Jeff wrote:
Thanks for this. That seems to work. Now I am looking for the Gtk3
equivalent of $context->get_targets as per:

This seems at least to run:

    # Callback for dropped signal.
    $self->signal_connect(
        drag_drop => sub {
            my ( $tree, $context, $x, $y, $when ) = @_;
            my $targets = $tree->drag_dest_get_target_list;
            if ( my $target = $tree->drag_dest_find_target($context,
$targets)){
                $tree->drag_get_data( $context, $target, $when );
                return TRUE;
            }
            return FALSE;
        }
    );

Still not quite there, though.

Regards

Jeff

Attachment: signature.asc
Description: OpenPGP digital signature



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