Method

GtkToolItemget_proxy_menu_item

Declaration [src]

GtkWidget*
gtk_tool_item_get_proxy_menu_item (
  GtkToolItem* tool_item,
  const gchar* menu_item_id
)

Description [src]

If menu_item_id matches the string passed to gtk_tool_item_set_proxy_menu_item() return the corresponding GtkMenuItem.

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

Available since:2.4

Parameters

menu_item_id const gchar*
 

A string used to identify the menu item.

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

Return value

Returns: GtkWidget
 

The GtkMenuItem passed to gtk_tool_item_set_proxy_menu_item(), if the menu_item_ids match.

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