mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
docs: Fix method names in GMenu and GMenuModel
This commit is contained in:
parent
43a3a5edfc
commit
e70b72f5a1
11
gio/gmenu.c
11
gio/gmenu.c
@ -391,7 +391,7 @@ g_menu_append_section (GMenu *menu,
|
||||
* @submenu: a #GMenuModel with the items of the submenu
|
||||
*
|
||||
* Convenience function for inserting a submenu menu item into @menu.
|
||||
* Combine g_menu_new_submenu() and g_menu_insert_item() for a more
|
||||
* Combine g_menu_item_new_submenu() and g_menu_insert_item() for a more
|
||||
* flexible alternative.
|
||||
*
|
||||
* Since: 2.32
|
||||
@ -416,7 +416,7 @@ g_menu_insert_submenu (GMenu *menu,
|
||||
* @submenu: a #GMenuModel with the items of the submenu
|
||||
*
|
||||
* Convenience function for prepending a submenu menu item to the start
|
||||
* of @menu. Combine g_menu_new_submenu() and g_menu_insert_item() for
|
||||
* of @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() for
|
||||
* a more flexible alternative.
|
||||
*
|
||||
* Since: 2.32
|
||||
@ -436,7 +436,7 @@ g_menu_prepend_submenu (GMenu *menu,
|
||||
* @submenu: a #GMenuModel with the items of the submenu
|
||||
*
|
||||
* Convenience function for appending a submenu menu item to the end of
|
||||
* @menu. Combine g_menu_new_submenu() and g_menu_insert_item() for a
|
||||
* @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() for a
|
||||
* more flexible alternative.
|
||||
*
|
||||
* Since: 2.32
|
||||
@ -945,8 +945,7 @@ g_menu_item_set_action_and_target (GMenuItem *menu_item,
|
||||
* a separator between an action name and a target string. In this
|
||||
* case, this call is equivalent to calling
|
||||
* g_menu_item_set_action_and_target() with the part before the "::" and
|
||||
* g_menu_item_set_target_value() with a string-type #GVariant
|
||||
* containing the part following the "::".
|
||||
* with a string-type #GVariant containing the part following the "::".
|
||||
*
|
||||
* If @detailed_action doesn't contain "::" then the action is set to
|
||||
* the given string (verbatim) and the target value is unset.
|
||||
@ -955,7 +954,7 @@ g_menu_item_set_action_and_target (GMenuItem *menu_item,
|
||||
* g_menu_item_set_action_and_target_value() for more flexible (but
|
||||
* slightly less convenient) alternatives.
|
||||
*
|
||||
* See also g_menu_set_action_and_target_value() for a description of
|
||||
* See also g_menu_item_set_action_and_target_value() for a description of
|
||||
* the semantics of the action and target attributes.
|
||||
*
|
||||
* Since: 2.32
|
||||
|
@ -714,8 +714,8 @@ struct _GMenuAttributeIterPrivate
|
||||
*
|
||||
* If successful, @name and @value are set to the name and value of the
|
||||
* attribute that has just been advanced to. At this point,
|
||||
* g_menu_item_get_name() and g_menu_item_get_value() will return the
|
||||
* same values again.
|
||||
* g_menu_attribute_iter_get_name() and g_menu_attribute_iter_get_value() will
|
||||
* return the same values again.
|
||||
*
|
||||
* The value returned in @name remains valid for as long as the iterator
|
||||
* remains at the current position. The value returned in @value must
|
||||
@ -871,7 +871,7 @@ struct _GMenuLinkIterPrivate
|
||||
*
|
||||
* If successful, @out_link and @value are set to the name and #GMenuModel
|
||||
* of the link that has just been advanced to. At this point,
|
||||
* g_menu_item_get_name() and g_menu_item_get_value() will return the
|
||||
* g_menu_link_iter_get_name() and g_menu_link_iter_get_value() will return the
|
||||
* same values again.
|
||||
*
|
||||
* The value returned in @out_link remains valid for as long as the iterator
|
||||
|
Loading…
Reference in New Issue
Block a user