[gtk+/wip/csoriano/pathbar-prototype: 58/71] gtkhidingbox: use directly the parameters
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/pathbar-prototype: 58/71] gtkhidingbox: use directly the parameters
- Date: Mon, 16 Nov 2015 17:43:00 +0000 (UTC)
commit 10e647280fb24d043c938e11ef921b8a2f1a1c38
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Nov 4 16:24:50 2015 +0100
gtkhidingbox: use directly the parameters
gtk/gtkhidingbox.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkhidingbox.c b/gtk/gtkhidingbox.c
index 65de641..d4edcfb 100644
--- a/gtk/gtkhidingbox.c
+++ b/gtk/gtkhidingbox.c
@@ -350,23 +350,20 @@ gtk_hiding_box_get_preferred_height (GtkWidget *widget,
{
GtkHidingBox *box = GTK_HIDING_BOX (widget);
GtkHidingBoxPrivate *priv = gtk_hiding_box_get_instance_private (box);
- gint m, n;
gint cm, cn;
GList *child;
- m = n = 0;
+ *min = 0;
+ *nat = 0;
for (child = priv->children; child != NULL; child = child->next)
{
if (!gtk_widget_is_visible (child->data))
continue;
gtk_widget_get_preferred_height (child->data, &cm, &cn);
- m = MAX (m, cm);
- n = MAX (n, cn);
+ *min = MAX (*min, cm);
+ *nat = MAX (*nat, cn);
}
-
- *min = m;
- *nat = n;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]