set_open_flags


Description:

[ Version ( since = "3.10" ) ]
public void set_open_flags (PlacesOpenFlags flags)

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 this 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 set_open_flags.

Passing 0 for flags will cause NORMAL to always be sent to callbacks for the “open-location” signal.

Parameters:

this

a places sidebar

flags

Bitmask of modes in which the calling application can open locations