Package: gtk

Accessor gtk:places-sidebar-open-flags

Lambda List

gtk:places-sidebar-open-flags (object)

Syntax

(gtk:places-sidebar-open-flags object) => flags
(setf (gtk:places-sidebar-open-flags object) flags)

Arguments

object -- a gtk:places-sidebar widget
flags -- a gtk:places-open-flags bitmask of modes in which the calling application can open locations

Details

Accessor of the open-flags slot of the gtk:places-sidebar class. The gtk:places-sidebar-open-flags function gets the open flags. The (setf gtk:places-sidebar-open-flags) function sets the way in which the calling application can open new locations from the places sidebar. For example, some applications only open locations "directly" into their main view, while others may support opening locations in a new notebook tab or a new window.

This function is used to tell the places sidebar about the ways in which the application can open new locations, so that the sidebar can display (or not) the "Open in new tab" and "Open in new window" menu items as appropriate.

When the "open-location" signal is emitted, its flags argument will be set to one of the flags that was passed in the gtk:places-sidebar-open-flags function.

Passing 0 for flags will cause :normal to always be sent to callbacks for the "open-location" signal.
 

See also

#2023-3-6