### Interface

# GtkTreeDragDest

deprecated: 4.10

#### Description [src]

    interface Gtk.TreeDragDest : GObject.Object

Interface for Drag-and-Drop destinations in `GtkTreeView`.

Deprecated since: 4.10

List views use widgets to display their contents. You can use `GtkDropTarget` to implement a drop destination.

#### Prerequisite

In order to implement TreeDragDest, your type must inherit from`GObject`.

#### Implementations

- GtkListStore
- GtkTreeStore

#### Instance methods

###### gtk_tree_drag_dest_drag_data_received

Asks the `GtkTreeDragDest` to insert a row before the path `dest`, deriving the contents of the row from `value`. If `dest` is outside the tree so that inserting before it is impossible, `FALSE` will be returned. Also, `FALSE` may be returned if the new row is not created for some model-specific reason. Should robustly handle a `dest` no longer found in the model!

deprecated: 4.10

###### gtk_tree_drag_dest_row_drop_possible

Determines whether a drop is possible before the given `dest_path`, at the same depth as `dest_path`. i.e., can we drop the data in `value` at that location. `dest_path` does not have to exist; the return value will almost certainly be `FALSE` if the parent of `dest_path` doesn’t exist, though.

deprecated: 4.10

#### Interface structure

    struct GtkTreeDragDestIface {
      gboolean (* drag_data_received) (
        GtkTreeDragDest* drag_dest,
        GtkTreePath* dest,
        const GValue* value
      );
      gboolean (* row_drop_possible) (
        GtkTreeDragDest* drag_dest,
        GtkTreePath* dest_path,
        const GValue* value
      );

    }

No description available.

###### Interface members

`drag_data_received`

    gboolean (* drag_data_received) (
        GtkTreeDragDest* drag_dest,
        GtkTreePath* dest,
        const GValue* value
      )

| Asks the `GtkTreeDragDest` to insert a row before the path dest, deriving the contents of the row from selection_data.

`row_drop_possible`

    gboolean (* row_drop_possible) (
        GtkTreeDragDest* drag_dest,
        GtkTreePath* dest_path,
        const GValue* value
      )

| Determines whether a drop is possible before the given dest_path, at the same depth as dest_path.

#### Virtual methods

###### Gtk.TreeDragDest.drag_data_received

Asks the `GtkTreeDragDest` to insert a row before the path `dest`, deriving the contents of the row from `value`. If `dest` is outside the tree so that inserting before it is impossible, `FALSE` will be returned. Also, `FALSE` may be returned if the new row is not created for some model-specific reason. Should robustly handle a `dest` no longer found in the model!

deprecated: 4.10

###### Gtk.TreeDragDest.row_drop_possible

Determines whether a drop is possible before the given `dest_path`, at the same depth as `dest_path`. i.e., can we drop the data in `value` at that location. `dest_path` does not have to exist; the return value will almost certainly be `FALSE` if the parent of `dest_path` doesn’t exist, though.

deprecated: 4.10