Signal

GtkWidget::drag-failed

Declaration

gboolean
drag_failed (
  GtkWidget* self,
  GdkDragContext* context,
  GtkDragResult result,
  gpointer user_data
)

Description [src]

The ::drag-failed signal is emitted on the drag source when a drag has failed. The signal handler may hook custom code to handle a failed DnD operation based on the type of error, it returns TRUE is the failure has been already handled (not showing the default “drag operation failed” animation), otherwise it returns FALSE.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Available since:2.12

Parameters

context GdkDragContext
 

The drag context.

 The data is owned by the caller of the function.
result GtkDragResult
 

The result of the drag operation.

Return value

Returns: gboolean
 

TRUE if the failed drag operation has been already handled.