gtkplacessidebar: add API for show drop hints
It is convenient to allow applications to show all the drop targets at once. This improves the user experience with drag an drop. The new API allows the application to set the gtkplacessidebar in a mode where invalid drop targets are insensitive and it adds a "new bookmark" row. This mode is intended to be set when the application is aware of a dnd operation and needs to be stopped kwhen the application is aware that dnd operation was cancelled or ended in a different part than gtkplacesisdebar. The context parameter is unused in this patch, but will be used in next patches when the sidebar will use a GtkListBox. The reason of being unused now is just convenience. https://bugzilla.gnome.org/show_bug.cgi?id=747793
This commit is contained in:
		| @ -137,6 +137,10 @@ GSList *           gtk_places_sidebar_list_shortcuts             (GtkPlacesSideb | ||||
| GDK_AVAILABLE_IN_3_10 | ||||
| GFile *            gtk_places_sidebar_get_nth_bookmark           (GtkPlacesSidebar   *sidebar, | ||||
|                                                                   gint                n); | ||||
| GDK_AVAILABLE_IN_3_18 | ||||
| void               gtk_places_sidebar_set_drop_targets_visible   (GtkPlacesSidebar   *sidebar, | ||||
|                                                                   gboolean            visible, | ||||
|                                                                   GdkDragContext     *context); | ||||
|  | ||||
| G_END_DECLS | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Carlos Soriano
					Carlos Soriano