gtkplacessidebar: add API for show drop hints

Desktop / GNOME / GTK - Carlos Soriano [gnome.org] - 16 June 2015 09:19 UTC

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

91e1e80 gtkplacessidebar: add API for show drop hints
docs/reference/gtk/gtk3-sections.txt | 1 +
gtk/gtkplacessidebar.c | 122 ++++++++++++++++++++++++++++------
gtk/gtkplacessidebar.h | 4 ++
3 files changed, 105 insertions(+), 22 deletions(-)

Upstream: git.gnome.org


  • Share