mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 22:40:11 +00:00
GtkOverlay: Sync up parameter names
gtk-doc gets confused if the parameter names between header, source and doc comment don't match up.
This commit is contained in:
parent
3c711cc98a
commit
b684e70dd5
@ -533,7 +533,7 @@ gtk_overlay_remove (GtkContainer *container,
|
|||||||
* gtk_overlay_reorder_overlay:
|
* gtk_overlay_reorder_overlay:
|
||||||
* @overlay: a #GtkOverlay
|
* @overlay: a #GtkOverlay
|
||||||
* @child: the overlaid #GtkWidget to move
|
* @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
|
* of @overlay, starting from 0. If negative, indicates the end of
|
||||||
* the list
|
* the list
|
||||||
*
|
*
|
||||||
@ -546,9 +546,9 @@ gtk_overlay_remove (GtkContainer *container,
|
|||||||
* the bottom. It also affects the default focus chain order.
|
* the bottom. It also affects the default focus chain order.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gtk_overlay_reorder_overlay (GtkOverlay *overlay,
|
gtk_overlay_reorder_overlay (GtkOverlay *overlay,
|
||||||
GtkWidget *child,
|
GtkWidget *child,
|
||||||
gint index)
|
gint position)
|
||||||
{
|
{
|
||||||
GtkOverlayPrivate *priv;
|
GtkOverlayPrivate *priv;
|
||||||
GSList *old_link;
|
GSList *old_link;
|
||||||
@ -556,6 +556,7 @@ gtk_overlay_reorder_overlay (GtkOverlay *overlay,
|
|||||||
GSList *l;
|
GSList *l;
|
||||||
GtkOverlayChild *child_info = NULL;
|
GtkOverlayChild *child_info = NULL;
|
||||||
gint old_index, i;
|
gint old_index, i;
|
||||||
|
gint index;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_OVERLAY (overlay));
|
g_return_if_fail (GTK_IS_OVERLAY (overlay));
|
||||||
g_return_if_fail (GTK_IS_WIDGET (child));
|
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);
|
g_return_if_fail (old_link != NULL);
|
||||||
|
|
||||||
if (index < 0)
|
if (position < 0)
|
||||||
{
|
{
|
||||||
new_link = NULL;
|
new_link = NULL;
|
||||||
index = g_slist_length (priv->children) - 1;
|
index = g_slist_length (priv->children) - 1;
|
||||||
@ -584,7 +585,7 @@ gtk_overlay_reorder_overlay (GtkOverlay *overlay,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
new_link = g_slist_nth (priv->children, index);
|
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)
|
if (index == old_index)
|
||||||
|
Loading…
Reference in New Issue
Block a user