Gtk.ToolItem.prototype.get_proxy_menu_item
function get_proxy_menu_item(menu_item_id:String):Gtk.Widget {
// Gjs wrapper for gtk_tool_item_get_proxy_menu_item()
}If menu_item_id matches the string passed to Gtk.set_proxy_menu_item return the corresponding Gtk.MenuItem.
Custom subclasses of Gtk.ToolItem should use this function to update their menu item when the Gtk.ToolItem changes. That the menu_item_id<!-- -->s must match ensures that a Gtk.ToolItem will not inadvertently change a menu item that they did not create.
Since 2.4
- menu_item_id
a string used to identify the menu item
- Returns
The Gtk.MenuItem passed to Gtk.set_proxy_menu_item, if the menu_item_id<!-- -->s match.