[gtk+] Box: Don't unnecessarily repeat a function call
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Box: Don't unnecessarily repeat a function call
- Date: Sun, 25 Dec 2016 22:29:49 +0000 (UTC)
commit 5d101740313107fbd946f1034b6671bcbecb4517
Author: Daniel Boles <dboles src gnome org>
Date: Sun Dec 25 17:43:06 2016 +0000
Box: Don't unnecessarily repeat a function call
The spacing was already saved in a variable just above.
gtk/gtkbox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index d19ef7d..67a4a41 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -554,9 +554,9 @@ gtk_box_size_allocate_no_center (GtkWidget *widget,
* minimum sizes for children that are not going to fill
*/
if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
- size = allocation->width - (nvis_children - 1) * get_spacing (box);
+ size = allocation->width - (nvis_children - 1) * spacing;
else
- size = allocation->height - (nvis_children - 1) * get_spacing (box);
+ size = allocation->height - (nvis_children - 1) * spacing;
extra = size / nvis_children;
n_extra_widgets = size % nvis_children;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]