sizerequest: return CONSTANT_SIZE in return_if_fail()

This commit is contained in:
Benjamin Otte 2011-04-01 00:21:04 +02:00
parent 616e6d1565
commit dcae3598b3

View File

@ -508,7 +508,7 @@ compute_size_for_orientation (GtkWidget *widget,
GtkSizeRequestMode
gtk_widget_get_request_mode (GtkWidget *widget)
{
g_return_val_if_fail (GTK_IS_WIDGET (widget), GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH);
g_return_val_if_fail (GTK_IS_WIDGET (widget), GTK_SIZE_REQUEST_CONSTANT_SIZE);
return GTK_WIDGET_GET_CLASS (widget)->get_request_mode (widget);
}