diff options
author | Benjamin Otte <otte@redhat.com> | 2012-02-08 19:19:59 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-03-01 15:10:36 +0100 |
commit | 64425a28de0928d04ddfb0a3a53a2d24f0338b25 (patch) | |
tree | 31cc246a2c6dea5d37e550985ebd3196d2a20f4b /gtk/gtkcsslookup.c | |
parent | 47402cc26a9b65815d46799f6a467eb3fe409869 (diff) | |
download | gtk+-64425a28de0928d04ddfb0a3a53a2d24f0338b25.tar.gz |
bitmask: Make setters return a new value
(Actually, it's not a real 'new' value yet, but will be soon.
This is the first step to make bitmasks immutable.
Diffstat (limited to 'gtk/gtkcsslookup.c')
-rw-r--r-- | gtk/gtkcsslookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c index 621f57551d..a40e2df899 100644 --- a/gtk/gtkcsslookup.c +++ b/gtk/gtkcsslookup.c @@ -43,7 +43,7 @@ _gtk_css_lookup_new (void) lookup = g_malloc0 (sizeof (GtkCssLookup) + sizeof (GtkCssLookupValue) * n); lookup->missing = _gtk_bitmask_new (); - _gtk_bitmask_invert_range (lookup->missing, 0, n); + lookup->missing = _gtk_bitmask_invert_range (lookup->missing, 0, n); return lookup; } @@ -97,7 +97,7 @@ _gtk_css_lookup_set (GtkCssLookup *lookup, g_return_if_fail (_gtk_bitmask_get (lookup->missing, id)); g_return_if_fail (value != NULL); - _gtk_bitmask_set (lookup->missing, id, FALSE); + lookup->missing = _gtk_bitmask_set (lookup->missing, id, FALSE); lookup->values[id].value = value; lookup->values[id].section = section; } @@ -131,7 +131,7 @@ _gtk_css_lookup_set_computed (GtkCssLookup *lookup, g_return_if_fail (_gtk_bitmask_get (lookup->missing, id)); g_return_if_fail (value != NULL); - _gtk_bitmask_set (lookup->missing, id, FALSE); + lookup->missing = _gtk_bitmask_set (lookup->missing, id, FALSE); lookup->values[id].computed = value; lookup->values[id].section = section; } |