diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-06-20 10:52:44 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-06-20 10:52:44 -0400 |
commit | b684e70dd5639a5874a25aadb54f2c6ebda6804f (patch) | |
tree | 8ae6ff8b310db74fb3d9a651136bf2e93b829529 /gtk/gtkoverlay.c | |
parent | 3c711cc98a533d31197083bcc815b127181c9cd5 (diff) | |
download | gtk+-b684e70dd5639a5874a25aadb54f2c6ebda6804f.tar.gz |
GtkOverlay: Sync up parameter names
gtk-doc gets confused if the parameter names between header,
source and doc comment don't match up.
Diffstat (limited to 'gtk/gtkoverlay.c')
-rw-r--r-- | gtk/gtkoverlay.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c index 9512a2d78b..f172436b1e 100644 --- a/gtk/gtkoverlay.c +++ b/gtk/gtkoverlay.c @@ -533,7 +533,7 @@ gtk_overlay_remove (GtkContainer *container, * gtk_overlay_reorder_overlay: * @overlay: a #GtkOverlay * @child: the overlaid #GtkWidget to move - * @index: the new index for @child in the list of overlay children + * @position: the new index for @child in the list of overlay children * of @overlay, starting from 0. If negative, indicates the end of * the list * @@ -546,9 +546,9 @@ gtk_overlay_remove (GtkContainer *container, * the bottom. It also affects the default focus chain order. */ void -gtk_overlay_reorder_overlay (GtkOverlay *overlay, - GtkWidget *child, - gint index) +gtk_overlay_reorder_overlay (GtkOverlay *overlay, + GtkWidget *child, + gint position) { GtkOverlayPrivate *priv; GSList *old_link; @@ -556,6 +556,7 @@ gtk_overlay_reorder_overlay (GtkOverlay *overlay, GSList *l; GtkOverlayChild *child_info = NULL; gint old_index, i; + gint index; g_return_if_fail (GTK_IS_OVERLAY (overlay)); g_return_if_fail (GTK_IS_WIDGET (child)); @@ -576,7 +577,7 @@ gtk_overlay_reorder_overlay (GtkOverlay *overlay, g_return_if_fail (old_link != NULL); - if (index < 0) + if (position < 0) { new_link = NULL; index = g_slist_length (priv->children) - 1; @@ -584,7 +585,7 @@ gtk_overlay_reorder_overlay (GtkOverlay *overlay, else { new_link = g_slist_nth (priv->children, index); - index = MIN (index, g_slist_length (priv->children) - 1); + index = MIN (position, g_slist_length (priv->children) - 1); } if (index == old_index) |