[gtk+] Fix a typo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a typo
- Date: Wed, 28 Jan 2015 15:09:19 +0000 (UTC)
commit 1aee4f038448b79ebbc6fb6925aec2dfbe71f3c9
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 28 10:08:13 2015 -0500
Fix a typo
commit aa1b7fab9c6a2b39 introduced a misuse of G_UNLIKELY in
several places. Fix all those.
gtk/gtktextview.c | 2 +-
gtk/gtktreeview.c | 2 +-
gtk/gtkwidget.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 6d0777c..a61dd1e 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -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);
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 7b97c00..f43231f 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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);
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index b7fa367..fc1d2ff 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]