Method

GtkApplicationget_menu_by_id

Declaration [src]

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

Description [src]

Gets a menu from automatically loaded resources.

See the section on Automatic resources for more information.

Parameters

id

Type: const char*

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.
The return value can be NULL.