Revert "treeview: Remove unneeded checks"

This reverts commit a158a2aa48.

The commit conflicts with a later revert, so move it out of the way.
This commit is contained in:
Matthias Clasen 2014-06-01 10:09:52 -04:00
parent 97930a774b
commit 210453b79e

View File

@ -2591,8 +2591,10 @@ gtk_tree_view_get_preferred_width (GtkWidget *widget,
tree_view->priv->n_expand_columns++;
}
*minimum = tree_view->priv->minimum_width;
*natural = tree_view->priv->natural_width;
if (minimum != NULL)
*minimum = tree_view->priv->minimum_width;
if (natural != NULL)
*natural = tree_view->priv->natural_width;
}
static void
@ -2607,8 +2609,10 @@ gtk_tree_view_get_preferred_height (GtkWidget *widget,
height = gtk_tree_view_get_height (tree_view) + gtk_tree_view_get_effective_header_height (tree_view);
*minimum = height;
*natural = height;
if (minimum != NULL)
*minimum = height;
if (natural != NULL)
*natural = height;
}
static void