summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-01-17 13:11:32 +0100
committerTimm Bäder <mail@baedert.org>2018-01-17 21:57:20 +0100
commit27c76db9569372cfb8f8797b67e1ac0d2f4cdfc1 (patch)
tree272a0c83e531157281eac5f26e9ba20eddd81633 /gtk/gtkbox.c
parente763dac72e1ea4a5b70bf20d56d67cf934563269 (diff)
downloadgtk+-27c76db9569372cfb8f8797b67e1ac0d2f4cdfc1.tar.gz
box: Simplify some code
All out varibles in measure implementations must be non-null and -1 is the default value for the baseline parameters.
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index f59284f294..55681262bf 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -1303,13 +1303,7 @@ gtk_box_measure (GtkWidget *widget,
if (private->orientation != orientation)
gtk_box_compute_size_for_opposing_orientation (box, for_size, minimum, natural, minimum_baseline, natural_baseline);
else
- {
- if (minimum_baseline)
- *minimum_baseline = -1;
- if (natural_baseline)
- *natural_baseline = -1;
- gtk_box_compute_size_for_orientation (box, for_size, minimum, natural);
- }
+ gtk_box_compute_size_for_orientation (box, for_size, minimum, natural);
}
}