Overlay: Use @index_, not @position, in reorder()
We named the argument `position` in the code and doc arguments, but the rest of the documentation referred to `index` instead. That was maybe meant to hint at the child property named :index, but we can simply be fully clear here. We can call the argument `index_`, replacing the local variable with that name, thus avoiding any possible confusion with the unrelated ::get-child-position, and refer users to :index for completion `index_` is used instead of plain `index` in case anyone is #including <strings.h> and getting the old index() function superseded by strchr(); see https://gitlab.gnome.org/GNOME/gtk/merge_requests/932#note_531149
This commit is contained in:
@ -84,9 +84,9 @@ GDK_AVAILABLE_IN_3_2
|
||||
void gtk_overlay_add_overlay (GtkOverlay *overlay,
|
||||
GtkWidget *widget);
|
||||
GDK_AVAILABLE_IN_3_18
|
||||
void gtk_overlay_reorder_overlay (GtkOverlay *overlay,
|
||||
GtkWidget *child,
|
||||
gint position);
|
||||
void gtk_overlay_reorder_overlay (GtkOverlay *overlay,
|
||||
GtkWidget *child,
|
||||
int index_);
|
||||
GDK_AVAILABLE_IN_3_18
|
||||
gboolean gtk_overlay_get_overlay_pass_through (GtkOverlay *overlay,
|
||||
GtkWidget *widget);
|
||||
|
||||
Reference in New Issue
Block a user