| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
We no longer use types when matching names.
|
|
|
|
|
| |
The type is always 0 when we use names. So this would always return
FALSE. Oops.
|
|
|
|
|
|
|
|
| |
... and gtk_widget_path_iter_get_object_name(). This allows applications
that still use widget paths to use the new object names to get the
correct styling.
Mutter and webkit-gtk are examples here.
|
| |
|
|
|
|
|
|
|
| |
... and use it in the node matcher.
Also rename function from _gtk_css_matcher_get_type() to
_gtk_css_matcher_get_name().
|
|
|
|
|
| |
The sole caller passes an interned string, so we don't
need to call g_intern_string again.
|
|
|
|
| |
.. instead of only on 3rd, 5th, 7th, ...
|
|
|
|
|
| |
first-child and last-child are the most common usages of the nth-child
machinery, so special-casing them makes sense.
|
|
|
|
|
|
| |
Instead of trying to be smart, be stupid but correct.
Fixes nth-child reftest.
|
|
|
|
|
|
| |
Instead of copy/paste, pass the only difference as an argument
The code still doesn't work right, but at least it's easier to fix now.
|
|
|
|
|
| |
This allows hiding nodes of invisible widgets.
And that in turn makes sure :nth-child() works as expected.
|
| |
|
|
|
|
| |
... 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.
|
|
|
|
|
|
|
| |
Previously, we always returned the state flags of the original widget
and did not consider the siblings' pseudoclasses.
Testcase is attached.
|
|
|
|
|
|
|
|
| |
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 know regions are deprecated, no need to warn about it here.
|
|
|
|
|
|
|
| |
... which are both to be used for links instead of the current
-GtkWidget-link-color and -GtkWidget-visited-link-color
https://bugzilla.gnome.org/show_bug.cgi?id=709629
|
|
|
|
|
|
|
|
|
| |
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.
|