Method

MateMenuTreeget_entry_by_id

Declaration [src]

MateMenuTreeEntry*
matemenu_tree_get_entry_by_id (
  MateMenuTree* tree,
  const char* id
)

Description [src]

Look up the entry corresponding to the given “desktop file id”.

Parameters

id

Type: const char*

A desktop file ID.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: MateMenuTreeEntry

A newly referenced MateMenuTreeEntry, or NULL if none.

The caller of the method takes ownership of the data, and is responsible for freeing it.