[gtk+/wip/css: 9/36] csslookup: Query the bitmask



commit 27a78a50dfc0181d9795c2f2d9bb8d961246be75
Author: Benjamin Otte <otte redhat com>
Date:   Sat Jan 14 16:58:52 2012 +0100

    csslookup: Query the bitmask
    
    Checking if the value is NULL is the wrong thing to do - the bitmask is
    usd to keep track of that.
    
    The reason for that will become apparent in the next patch.

 gtk/gtkcsslookup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c
index 76bdb48..fce8528 100644
--- a/gtk/gtkcsslookup.c
+++ b/gtk/gtkcsslookup.c
@@ -72,7 +72,7 @@ _gtk_css_lookup_is_missing (const GtkCssLookup *lookup,
 {
   g_return_val_if_fail (lookup != NULL, FALSE);
 
-  return lookup->values[id].value == NULL;
+  return _gtk_bitmask_get (lookup->missing, id);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]