[gtk+] box: Simplify some code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] box: Simplify some code
- Date: Wed, 17 Jan 2018 20:54:46 +0000 (UTC)
commit 27c76db9569372cfb8f8797b67e1ac0d2f4cdfc1
Author: Timm Bäder <mail baedert org>
Date: Wed Jan 17 13:11:32 2018 +0100
box: Simplify some code
All out varibles in measure implementations must be non-null and -1 is
the default value for the baseline parameters.
gtk/gtkbox.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index f59284f..5568126 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]