gtkhidingbox: use directly the parameters

parent 8ef6f596
...@@ -350,23 +350,20 @@ gtk_hiding_box_get_preferred_height (GtkWidget *widget, ...@@ -350,23 +350,20 @@ gtk_hiding_box_get_preferred_height (GtkWidget *widget,
{ {
GtkHidingBox *box = GTK_HIDING_BOX (widget); GtkHidingBox *box = GTK_HIDING_BOX (widget);
GtkHidingBoxPrivate *priv = gtk_hiding_box_get_instance_private (box); GtkHidingBoxPrivate *priv = gtk_hiding_box_get_instance_private (box);
gint m, n;
gint cm, cn; gint cm, cn;
GList *child; GList *child;
m = n = 0; *min = 0;
*nat = 0;
for (child = priv->children; child != NULL; child = child->next) for (child = priv->children; child != NULL; child = child->next)
{ {
if (!gtk_widget_is_visible (child->data)) if (!gtk_widget_is_visible (child->data))
continue; continue;
gtk_widget_get_preferred_height (child->data, &cm, &cn); gtk_widget_get_preferred_height (child->data, &cm, &cn);
m = MAX (m, cm); *min = MAX (*min, cm);
n = MAX (n, cn); *nat = MAX (*nat, cn);
} }
*min = m;
*nat = n;
} }
static void static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment