Method

GtkRecentInfoget_short_name

since: 2.10

Declaration [src]

gchar*
gtk_recent_info_get_short_name (
  GtkRecentInfo* info
)

Description [src]

Computes a valid UTF-8 string that can be used as the name of the item in a menu or list. For example, calling this function on an item that refers to “file:///foo/bar.txt” will yield “bar.txt”.

Available since: 2.10

Return value

Type: gchar*

A newly-allocated string in UTF-8 encoding free it with g_free().

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