Skip to content

Gtk.TreeDragDest

interface

:::warning Deprecated since 4.10 This API is deprecated. :::

Interface for Drag-and-Drop destinations in GtkTreeView.

Methods

drag_data_received

def drag_data_received(self, dest: TreePath, value: GObject.Value) -> bool

:::warning Deprecated since 4.10 This API is deprecated. :::

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!

Parameters:

  • dest — row to drop in front of
  • value — data to drop

row_drop_possible

def row_drop_possible(self, dest_path: TreePath, value: GObject.Value) -> bool

:::warning Deprecated since 4.10 This API is deprecated. :::

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.

Parameters:

  • dest_path — destination row
  • value — the data being dropped

Virtual methods

do_drag_data_received

def do_drag_data_received(self, dest: TreePath, value: GObject.Value) -> bool

:::warning Deprecated since 4.10 This API is deprecated. :::

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!

Parameters:

  • dest — row to drop in front of
  • value — data to drop

do_row_drop_possible

def do_row_drop_possible(self, dest_path: TreePath, value: GObject.Value) -> bool

:::warning Deprecated since 4.10 This API is deprecated. :::

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.

Parameters:

  • dest_path — destination row
  • value — the data being dropped