[gtk+] docs: fix parameter name mismatches
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] docs: fix parameter name mismatches
- Date: Tue, 7 Jun 2011 23:57:05 +0000 (UTC)
commit 29e664629225128e9d8be02aa27b95a3d0ad47ef
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 7 19:30:51 2011 -0400
docs: fix parameter name mismatches
gtk/gtkcontainer.c | 10 +++++-----
gtk/gtkcontainer.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index fc27dd1..66e7a0c 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -769,8 +769,8 @@ gtk_container_child_type (GtkContainer *container)
/**
* gtk_container_child_notify:
* @container: the #GtkContainer
- * @widget: the child widget
- * @child_property: the name of a chld property installed on
+ * @child: the child widget
+ * @child_property: the name of a child property installed on
* the class of @container
*
* Emits a #GtkWidget::child-notify signal for the
@@ -785,17 +785,17 @@ gtk_container_child_type (GtkContainer *container)
*/
void
gtk_container_child_notify (GtkContainer *container,
- GtkWidget *widget,
+ GtkWidget *child,
const gchar *child_property)
{
GObject *obj;
GParamSpec *pspec;
g_return_if_fail (GTK_IS_CONTAINER (container));
- g_return_if_fail (GTK_IS_WIDGET (widget));
+ g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (child_property != NULL);
- obj = G_OBJECT (widget);
+ obj = G_OBJECT (child);
if (obj->ref_count == 0)
return;
diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h
index afd2ace..082b41e 100644
--- a/gtk/gtkcontainer.h
+++ b/gtk/gtkcontainer.h
@@ -199,7 +199,7 @@ void gtk_container_child_get_property (GtkContainer *container,
void gtk_container_child_notify (GtkContainer *container,
GtkWidget *child,
- const gchar *property_name);
+ const gchar *child_property);
/**
* GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]