From e70b72f5a10c22be137d3173e9fbe2ae11c82f85 Mon Sep 17 00:00:00 2001 From: David King Date: Sun, 19 Feb 2012 16:37:55 +0000 Subject: [PATCH] docs: Fix method names in GMenu and GMenuModel --- gio/gmenu.c | 11 +++++------ gio/gmenumodel.c | 6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gio/gmenu.c b/gio/gmenu.c index 0873d39ab..f924290bd 100644 --- a/gio/gmenu.c +++ b/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 diff --git a/gio/gmenumodel.c b/gio/gmenumodel.c index 64d99ae5e..d3285fa5d 100644 --- a/gio/gmenumodel.c +++ b/gio/gmenumodel.c @@ -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 -- 2.11.0