diff options
author | Timm Bäder <mail@baedert.org> | 2018-01-17 13:11:32 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-01-17 21:57:20 +0100 |
commit | 27c76db9569372cfb8f8797b67e1ac0d2f4cdfc1 (patch) | |
tree | 272a0c83e531157281eac5f26e9ba20eddd81633 /gtk/gtkbox.c | |
parent | e763dac72e1ea4a5b70bf20d56d67cf934563269 (diff) | |
download | gtk+-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.c | 8 |
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); } } |