From f5f6597abc308843fce18a7e01a58edaa46375c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 27 Aug 2018 18:48:09 +0200 Subject: box: Rename avail_size to for_size everywhere So we call it like we call it everywhere else. --- gtk/gtkbox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 960bef0502..b89a296699 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -1007,7 +1007,7 @@ gtk_box_get_size (GtkWidget *widget, static void gtk_box_compute_size_for_opposing_orientation (GtkBox *box, - gint avail_size, + int for_size, gint *minimum_size, gint *natural_size, gint *minimum_baseline, @@ -1038,7 +1038,7 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box, spacing = get_spacing (box); sizes = g_newa (GtkRequestedSize, nvis_children); - extra_space = avail_size - (nvis_children - 1) * spacing; + extra_space = for_size - (nvis_children - 1) * spacing; /* Retrieve desired size for visible children */ for (i = 0, child = _gtk_widget_get_first_child (widget); @@ -1180,7 +1180,7 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box, static void gtk_box_compute_size_for_orientation (GtkBox *box, - int avail_size, + int for_size, int *minimum_size, int *natural_size) { @@ -1201,7 +1201,7 @@ gtk_box_compute_size_for_orientation (GtkBox *box, gtk_widget_measure (child, priv->orientation, - avail_size, + for_size, &child_size, &child_natural, NULL, NULL); -- cgit v1.2.1