Method

GtkApplicationget_menu_by_id

since: 3.14

Declaration [src]

GMenu*
gtk_application_get_menu_by_id (
  GtkApplication* application,
  const gchar* id
)

Description [src]

Gets a menu from automatically loaded resources. See [Automatic resources][automatic-resources] for more information.

Available since: 3.14

Parameters

id

Type: const gchar*

The id of the menu to look up.

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

Return value

Type: GMenu

Gets the menu with the given id from the automatically loaded resources.

The returned data is owned by the instance.