add_shortcut
Description:
Applications may want to present some folders in the places sidebar if they could be immediately useful to users.
For example, a drawing program could add a “/usr/share/clipart” location when the sidebar is being used in an “Insert Clipart” dialog box.
This function adds the specified location
to a special place for immutable shortcuts. The shortcuts are application-specific; they
are not shared across applications, and they are not persistent. If this function is called multiple times with different locations, then they
are added to the sidebar’s list in the same order as the function is called.
Parameters:
this |
a places sidebar |
location |
location to add as an application-specific shortcut |