gtk: Fix debug build

It seems I didn't have debug builds enabled and forgot some
return_if_fail()s when doing the last patch.
This commit is contained in:
Benjamin Otte 2017-10-31 06:09:33 +01:00
parent 0bf88db6cf
commit e8053622eb
4 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ _gtk_css_color_value_resolve (GtkCssValue *color,
GtkCssValue *value; GtkCssValue *value;
gtk_internal_return_val_if_fail (color != NULL, NULL); gtk_internal_return_val_if_fail (color != NULL, NULL);
gtk_internal_return_val_if_fail (provider == NULL || GTK_IS_STYLE_PROVIDER_PRIVATE (provider), NULL); gtk_internal_return_val_if_fail (provider == NULL || GTK_IS_STYLE_PROVIDER (provider), NULL);
switch (color->type) switch (color->type)
{ {

View File

@ -111,7 +111,7 @@ _gtk_css_lookup_resolve (GtkCssLookup *lookup,
guint i; guint i;
gtk_internal_return_if_fail (lookup != NULL); gtk_internal_return_if_fail (lookup != NULL);
gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider)); gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER (provider));
gtk_internal_return_if_fail (GTK_IS_CSS_STATIC_STYLE (style)); gtk_internal_return_if_fail (GTK_IS_CSS_STATIC_STYLE (style));
gtk_internal_return_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style)); gtk_internal_return_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style));

View File

@ -207,7 +207,7 @@ gtk_css_static_style_compute_value (GtkCssStaticStyle *style,
GtkCssValue *value; GtkCssValue *value;
gtk_internal_return_if_fail (GTK_IS_CSS_STATIC_STYLE (style)); gtk_internal_return_if_fail (GTK_IS_CSS_STATIC_STYLE (style));
gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider)); gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER (provider));
gtk_internal_return_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style)); gtk_internal_return_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style));
gtk_internal_return_if_fail (id < GTK_CSS_PROPERTY_N_PROPERTIES); gtk_internal_return_if_fail (id < GTK_CSS_PROPERTY_N_PROPERTIES);

View File

@ -90,7 +90,7 @@ _gtk_css_value_compute (GtkCssValue *value,
{ {
gtk_internal_return_val_if_fail (value != NULL, NULL); gtk_internal_return_val_if_fail (value != NULL, NULL);
gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), NULL); gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER (provider), NULL);
gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE (style), NULL); gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE (style), NULL);
gtk_internal_return_val_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style), NULL); gtk_internal_return_val_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style), NULL);