Package: gtk

Function gtk:places-sidebar-set-drop-targets-visible

Lambda List

gtk:places-sidebar-set-drop-targets-visible (sidebar visible context)

Arguments

sidebar -- a gtk:places-sidebar widget
visible -- a boolean whether to show the valid targets or not
context -- a gdk:drag-context drag context used to ask the source about the action that wants to perform, so hints are more accurate

Details

Make the gtk:places-sidebar object show drop targets, so it can show the available drop targets and a "new bookmark" row. This improves the Drag and Drop experience of the user and allows applications to show all available drop targets at once.

This needs to be called when the application is aware of an ongoing drag that might target the sidebar. The drop-targets-visible state will be unset automatically if the drag finishes in the gtk:places-sidebar object. You only need to unset the state when the drag ends on some other widget on your application.
 

See also

#2023-3-6