Fix return_if_fail lines in gtk_box_pack

Since the function now returns a value, these checks
need to be updated.
This commit is contained in:
Matthias Clasen 2014-02-17 11:54:43 -05:00
parent c4526288d1
commit e734b79fd8

View File

@ -1456,9 +1456,9 @@ gtk_box_pack (GtkBox *box,
GtkBoxPrivate *private = box->priv;
GtkBoxChild *child_info;
g_return_if_fail (GTK_IS_BOX (box));
g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (gtk_widget_get_parent (child) == NULL);
g_return_val_if_fail (GTK_IS_BOX (box), NULL);
g_return_val_if_fail (GTK_IS_WIDGET (child), NULL);
g_return_val_if_fail (gtk_widget_get_parent (child) == NULL, NULL);
child_info = g_new (GtkBoxChild, 1);
child_info->widget = child;