Function

Plumautils_location_get_dirname_for_display

since: 1.0

Declaration [src]

gchar*
pluma_utils_location_get_dirname_for_display (
  GFile* location
)

Description [src]

Returns a string suitable to be displayed in the UI indicating the name of the directory where the file is located. For remote files it may also contain the hostname etc. For local files it tries to replace the home dir with ~.

Available since: 1.0

Parameters

location

Type: GFile

The location.

The data is owned by the caller of the function.

Return value

Type: gchar*

A string to display the dirname.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.