Fix a typo

commit aa1b7fab9c introduced a misuse of G_UNLIKELY in
several places. Fix all those.
This commit is contained in:
Matthias Clasen 2015-01-28 10:08:13 -05:00
parent 8e8a94bc23
commit 1aee4f0384
3 changed files with 3 additions and 3 deletions

View File

@ -4461,7 +4461,7 @@ gtk_text_view_style_updated (GtkWidget *widget)
GtkStyleContext *style_context;
const GtkBitmask *changes;
if (G_UNLIKELY (affects_font) == NULL)
if (G_UNLIKELY (affects_font == NULL))
affects_font = _gtk_css_style_property_get_mask_affecting (GTK_CSS_AFFECTS_FONT);
text_view = GTK_TEXT_VIEW (widget);

View File

@ -8707,7 +8707,7 @@ gtk_tree_view_style_updated (GtkWidget *widget)
GtkStyleContext *style_context;
const GtkBitmask *changes;
if (G_UNLIKELY (affects_size) == NULL)
if (G_UNLIKELY (affects_size == NULL))
affects_size = _gtk_css_style_property_get_mask_affecting (GTK_CSS_AFFECTS_SIZE | GTK_CSS_AFFECTS_CLIP);
GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->style_updated (widget);

View File

@ -8231,7 +8231,7 @@ gtk_widget_real_style_updated (GtkWidget *widget)
{
static GtkBitmask *affects_size = NULL;
if (G_UNLIKELY (affects_size) == NULL)
if (G_UNLIKELY (affects_size == NULL))
affects_size = _gtk_css_style_property_get_mask_affecting (GTK_CSS_AFFECTS_SIZE | GTK_CSS_AFFECTS_CLIP);
if (changes == NULL || _gtk_bitmask_intersects (changes, affects_size))