get_proxy_menu_item


Description:

[ Version ( since = "2.4" ) ]
public unowned Widget? get_proxy_menu_item (string menu_item_id)

If menu_item_id matches the string passed to set_proxy_menu_item return the corresponding MenuItem.

Custom subclasses of ToolItem should use this function to update their menu item when the ToolItem changes. That the menu_item_ids must match ensures that a ToolItem will not inadvertently change a menu item that they did not create.

Parameters:

this

a ToolItem

menu_item_id

a string used to identify the menu item

Returns:

The MenuItem passed to set_proxy_menu_item, if the menu_item_ids match.




2022 vala-language.org