signal callback delegate or function to connect
int callback(gdk.drag_context.DragContext context, gio.file.File destFile, gio.file.File[] sourceFileList, gtk.places_sidebar.PlacesSidebar placesSidebar)
context #GdkDragContext with information about the drag operation (optional)
destFile #GFile with the tentative location that is being hovered for a drop (optional)
sourceFileList List of #GFile that are being dragged (optional)
placesSidebar the instance the signal is connected to (optional)
Returns The drag action to use, for example, #GDK_ACTION_COPY or #GDK_ACTION_MOVE, or 0 if no action is allowed here (i.e. drops are not allowed in the specified dest_file).
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to DragActionRequested signal.
When the user starts a drag-and-drop operation and the sidebar needs to ask the application for which drag action to perform, then the sidebar will emit this signal.
The application can evaluate the context for customary actions, or it can check the type of the files indicated by source_file_list against the possible actions for the destination dest_file.
The drag action to use must be the return value of the signal handler.