summaryrefslogtreecommitdiff
path: root/gtk/gtkcsslookup.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-25 23:49:17 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-25 23:49:17 -0500
commitb4e2df8fca050a594335674d6757b05eaf328e48 (patch)
tree8be001bf8c726581a78d463769016ad676748b9a /gtk/gtkcsslookup.c
parent0df0de0b5db87248ad1371ee1bfc8a733ec079e4 (diff)
downloadgtk+-b4e2df8fca050a594335674d6757b05eaf328e48.tar.gz
Revert "css: Split style into groups"
This reverts commit 0df0de0b5db87248ad1371ee1bfc8a733ec079e4.
Diffstat (limited to 'gtk/gtkcsslookup.c')
-rw-r--r--gtk/gtkcsslookup.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c
index b815aefd08..cfe5bfc5c5 100644
--- a/gtk/gtkcsslookup.c
+++ b/gtk/gtkcsslookup.c
@@ -28,14 +28,11 @@ void
_gtk_css_lookup_init (GtkCssLookup *lookup)
{
memset (lookup, 0, sizeof (*lookup));
-
- lookup->set_values = _gtk_bitmask_new ();
}
void
_gtk_css_lookup_destroy (GtkCssLookup *lookup)
{
- _gtk_bitmask_free (lookup->set_values);
}
gboolean
@@ -44,7 +41,13 @@ _gtk_css_lookup_is_missing (const GtkCssLookup *lookup,
{
gtk_internal_return_val_if_fail (lookup != NULL, FALSE);
- return !_gtk_bitmask_get (lookup->set_values, id);
+ return lookup->values[id].value == NULL;
+}
+
+gboolean
+_gtk_css_lookup_all_set (const GtkCssLookup *lookup)
+{
+ return lookup->n_set_values == GTK_CSS_PROPERTY_N_PROPERTIES;
}
/**
@@ -72,7 +75,7 @@ _gtk_css_lookup_set (GtkCssLookup *lookup,
lookup->values[id].value = value;
lookup->values[id].section = section;
- lookup->set_values = _gtk_bitmask_set (lookup->set_values, id, TRUE);
+ lookup->n_set_values ++;
}
/**