summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-08-27 18:48:09 +0200
committerTimm Bäder <mail@baedert.org>2018-08-27 18:48:09 +0200
commitf5f6597abc308843fce18a7e01a58edaa46375c4 (patch)
treed2c2317d0999b11c8b514382d91a4c31e144f5af
parentfade0afbefae454e3b859c428f6df85c91ce8d4d (diff)
downloadgtk+-f5f6597abc308843fce18a7e01a58edaa46375c4.tar.gz
box: Rename avail_size to for_size everywhere
So we call it like we call it everywhere else.
-rw-r--r--gtk/gtkbox.c8
1 files 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);