Gtk.TreeDragDest

g GObject.GInterface GObject.GInterface Gtk.TreeDragDest Gtk.TreeDragDest GObject.GInterface->Gtk.TreeDragDest

Implementations:

Gtk.ListStore, Gtk.TreeStore

Methods

drag_data_received (dest, value)

row_drop_possible (dest_path, value)

Virtual Methods

do_drag_data_received (dest, value)

do_row_drop_possible (dest_path, value)

Properties

None

Signals

None

Fields

None

Class Details

class Gtk.TreeDragDest
Bases:

GObject.GInterface

Structure:

Gtk.TreeDragDestIface

Interface for Drag-and-Drop destinations in GtkTreeView.

Deprecated since version 4.10: List views use widgets to display their contents. You can use [class`Gtk`.DropTarget] to implement a drop destination

drag_data_received(dest, value)[source]
Parameters:
Returns:

whether a new row was created before position dest

Return type:

bool

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 since version 4.10: Use list models instead

row_drop_possible(dest_path, value)[source]
Parameters:
Returns:

True if a drop is possible before dest_path

Return type:

bool

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 since version 4.10: Use list models instead

do_drag_data_received(dest, value) virtual
Parameters:
Returns:

whether a new row was created before position dest

Return type:

bool

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 since version 4.10: Use list models instead

do_row_drop_possible(dest_path, value) virtual
Parameters:
Returns:

True if a drop is possible before dest_path

Return type:

bool

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 since version 4.10: Use list models instead