forked from AuroraMiddleware/gtk
Fix a typo
commit aa1b7fab9c
introduced a misuse of G_UNLIKELY in
several places. Fix all those.
This commit is contained in:
parent
8e8a94bc23
commit
1aee4f0384
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user