Method

IdeApplicationget_menu_by_id

Declaration

GMenu*
ide_application_get_menu_by_id (
  IdeApplication* self,
  const char* menu_id
)

Description

Gets the merged menu by it’s identifier.

Parameters

menu_id

Type: const char*

The menu identifier.

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

Return value

Type: GMenu

A GMenu or NULL if menu_id is NULL.

The data is owned by the instance.
The return value can be NULL.