Package: gtk

Accessor gtk-places-sidebar-location

Lambda List

gtk-places-sidebar-location (object)

Syntax

(gtk-places-sidebar-location object) => location
(setf (gtk-places-sidebar-location object) location)

Arguments

object -- a gtk-places-sidebar widget
location -- a g-file with a location to select, or nil for no current path

Details

Accessor of the location slot of the gtk-places-sidebar class.

The slot access function gtk-places-sidebar-open-flags gets the currently selected location in the sidebar. This can be nil when nothing is selected, for example, when gtk-places-sidebar-location has been called with a location that is not among the sidebar’s list of places to show.

You can use this function to get the selection in the sidebar. Also, if you connect to the "populate-popup" signal, you can use this function to get the location that is being referred to during the callbacks for your menu items.

The slot access function (setf gtk-places-sidebar-open-flags) sets the location that is being shown in the widgets surrounding the sidebar, for example, in a folder view in a file manager. In turn, the sidebar will highlight that location if it is being shown in the list of places, or it will unhighlight everything if the location is not among the places in the list.
 

See also

2020-6-6