| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
... and all associated demos and tests.
|
|
|
|
|
|
|
| |
This reverts commit a75529f3c00736856fa20f19e920614be5a48fbb.
It just complicates code and there are no performance numbers that would
warrant such a commit.
|
|
|
|
| |
We no longer use superset or any matchers to find changes.
|
|
|
|
|
|
|
|
| |
This matches all the other vfuncs, and it gets us
out of keeping several big state flag enumerations
in sync.
Update all callers.
|
|
|
|
| |
This can help in debugging css matching.
|
|
|
|
|
|
| |
For now, this just replaces the is_any boolean
by a type field in the class. It will be used in
future commits.
|
|
|
|
|
|
|
|
| |
We use the superset matcher in exactly one place,
so there is no need for the generality of allowing
to ignore different aspects. Just hardcode the one
case we need: ignoring everything except for name,
id and class.
|
|
|
|
| |
So we don't have to go through the matcher->node->decl every time
|
|
|
|
| |
We no longer use types when matching names.
|
| |
|
|
|
|
|
|
|
| |
... and use it in the node matcher.
Also rename function from _gtk_css_matcher_get_type() to
_gtk_css_matcher_get_name().
|
|
|
|
| |
... and use that matcher by default - ie for transient nodes.
|
|
|
|
|
|
|
| |
The node declaration has the same functionality as
gtk_css_node_declaration_add_to_widget_path(). So instead of using that
function on a path, you can use the original path and the declaration in
a matcher.
|
|
|
|
|
|
| |
So far the vfunc is kinda quirky (the path argument is an out argument
for something you have to free when you're done with the matcher), but
I'm about to change that.
|
|
|
|
|
|
|
|
| |
Don't take a state when constructing the CSS matcher. Instead, rely on
the newly introduced state in the widget path.
This way, the state can be queried not only on the first element, but on
all elements of the widget path.
|
|
|
|
|
|
|
|
|
| |
We use the new g_type_get_type_registration_serial() so that we can
cache and properly invalidate the result of g_type_from_name().
This bumps the glib requirement to 2.35.3 to get the new function.
https://bugzilla.gnome.org/show_bug.cgi?id=689847
|
|
|
|
|
|
|
| |
This returns true if the matcher matches *anything*. We need
to check this later, because such matchers are dangerous in loops
that iterate over all parents/siblings since such loops would not
terminate.
|
|
|
|
| |
This is tested by the stylecontext test, but doesn't appear in practice.
|
| |
|
|
|
|
|
|
| |
This matcher always matches only on some relvant things and ignores the
rest. This allows you to match only on name and class, but ignore state
and parents/siblings for example.
|
|
|
|
|
| |
Lesson learned: Adwaita uses all possible selector types and all of
those for parents, too. But so far no siblings.
|
|
|
|
|
|
|
|
|
| |
We now track the position as a (type,a,b) tuple where the numbers make
up the an + b formula from CSS3 nth-child.
Also, the get_sibling() and get_sibling_index() vfuncs were replaced by
a has_position() vfunc. This is mostly so that the matcher can always
return TRUE. And I need that for the everything matcher.
|
|
|
|
| |
That way, we can add more matchers as we need them.
|
|
|
|
| |
Now we can do lots of fancy matchers, yay!
|
| |
|
|
This is so we can later do matching with other things than
GtkWidgetPath.
In particular, this is a requirement for getting rid of GtkWidgetPath.
|