Method
GtkPlacesSidebarset_drop_targets_visible
since: 3.18
Declaration [src]
void
gtk_places_sidebar_set_drop_targets_visible (
GtkPlacesSidebar* sidebar,
gboolean visible,
GdkDragContext* context
)
Description [src]
Make the GtkPlacesSidebar 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 GtkPlacesSidebar. You only need to unset the state when the drag ends on some other widget on your application.
Available since: 3.18
Parameters
visible
-
Type:
gboolean
Whether to show the valid targets or not.
context
-
Type:
GdkDragContext
Drag context used to ask the source about the action that wants to perform, so hints are more accurate.
The data is owned by the caller of the method.