[glib] Match up a parameter name
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Match up a parameter name
- Date: Thu, 8 Dec 2011 23:11:06 +0000 (UTC)
commit 58a8c02dfb2b003d4bb104dbe622b31c816107bc
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 27 01:06:17 2011 -0500
Match up a parameter name
gio/gmenu.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/gmenu.c b/gio/gmenu.c
index d11f7a3..40485f5 100644
--- a/gio/gmenu.c
+++ b/gio/gmenu.c
@@ -444,14 +444,14 @@ g_menu_clear_item (struct item *item)
**/
void
g_menu_remove (GMenu *menu,
- gint index_)
+ gint position)
{
g_return_if_fail (G_IS_MENU (menu));
- g_return_if_fail (0 <= index_ && index_ < menu->items->len);
+ g_return_if_fail (0 <= position && position < menu->items->len);
- g_menu_clear_item (&g_array_index (menu->items, struct item, index_));
- g_array_remove_index (menu->items, index_);
- g_menu_model_items_changed (G_MENU_MODEL (menu), index_, 1, 0);
+ g_menu_clear_item (&g_array_index (menu->items, struct item, position));
+ g_array_remove_index (menu->items, position);
+ g_menu_model_items_changed (G_MENU_MODEL (menu), position, 1, 0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]