---
name: "Gtk2::TreeDragSource"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::TreeDragSource"
---

# Gtk2::TreeDragSource(3pm)

wrapper for GtkTreeDragSource

## NAME

Gtk2::TreeDragSource - wrapper for GtkTreeDragSource

## HIERARCHY

```
  Glib::Interface
  +----Gtk2::TreeDragSource
```

## METHODS

### boolean = $drag\_source-\>drag\_data\_delete ($path)

- •

  `$path` (Gtk2::TreePath)

### selection\_data = $drag\_source-\>drag\_data\_get ($path, $selection\_data)

- •

  `$path` (Gtk2::TreePath)

- •

  `$selection_data` (Gtk2::SelectionData)

Get selection data from a drag source.  The data is written to `$selection_data`, or if `$selection_data` is not given then to a newly created Gtk2::SelectionData object with target type `"GTK_TREE_MODEL_ROW"`.  On success the return is the given or new object, or on failure the return is undef.

### boolean = $drag\_source-\>row\_draggable ($path)

- •

  `$path` (Gtk2::TreePath)

## SEE ALSO

Gtk2, Glib::Interface

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
