[gtk+] csslookup: Query the bitmask



commit e4c2d9b25958f608717bd79b49aef941b312fada
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]