Method

GtkPlacesSidebaradd_shortcut

since: 3.10

Declaration [src]

void
gtk_places_sidebar_add_shortcut (
  GtkPlacesSidebar* sidebar,
  GFile* location
)

Description [src]

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.

Available since: 3.10

Parameters

location

Type: GFile

Location to add as an application-specific shortcut.

The data is owned by the caller of the method.