| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We use a compilation symbol in our build to allow the inclusion of
specific headers while building GTK, to avoid the need to include only
the global header.
Each namespace has its own compilation symbol because we used to have
different libraries, and strict symbol visibility between libraries;
now that we have a single library, and we can use private symbols across
namespaces while building GTK, we should have a single compilation
symbol, and simplify the build rules.
|
| |
|
| |
|
|
|
|
|
| |
gtk-doc was complaining about it missing,
and it is used in some ifdefed code.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use cairo-script-interpreter to parse the scripts that generate cairo
nodes.
This requires libcairoscriptinterpreter.so to work properly, but if
it isn't found we disable this (unimportant for normal functioning)
code and just emits a parser warning.
The testsuite requires it however or it will fail.
A new test is included that tests all of this.
|
|
|
|
|
| |
The testusite failures explain why:
We don't want to print "1.00000000000000000", but "1".
|
|
|
|
|
|
|
|
| |
CSS does not do exponents, so printing numbers close to 0 as 1.234e-15
does not work.
Also up the accuracy to 17 digits because that's what everyone else
uses.
|
|
|
|
|
|
|
|
|
|
| |
We don't want to return a GFile because GFile can't handle can't deal
with data: urls.
That makes the code a bit more complicated that doesn't deal with those
URLs, but it makes the other code actually work.
GtkCssImageUrl also now decodes data urls immediately instead of only at
the first load. So don't use data urls if you care about performance.
|
|
|
|
|
|
|
|
|
|
|
| |
When we're at the end of a block and gtk_css_parser_get_token() returns
NULL, gtk_css_parser_commit_token() still consumed the next token.
It does not anymore.
This does not affect the CSS parser, but it exposes issues with the
render parser, which previously just consumed too many closing } tokens
in the past.
|
|
|
|
| |
This surprisingly decodes data URLs.
|
|
|
|
| |
Testcases included.
|
|
|
|
|
|
| |
Otherwise we infinitely end up with the error again.
Testcases added.
|
| |
|
|
|
|
|
|
| |
Necessary when the header file is included in C++ code.
Merge request !773
|
|
|
|
|
| |
... and use them to report better error locations for the warning when
blocks aren't terminated properly.
|
| |
|
|
|
|
|
| |
And for the quick function, use the start/end location of the current
token.
|
|
|
|
|
|
|
|
| |
Emit all errors via the parser, don't try to have a custom error
handling machinery.
The only exception is the initial file load error - we need to do that
one directly, because there is no parser.
|
|
|
|
|
| |
1. Export multiple locations
2. Return the location instead of passing one in
|
|
|
|
|
|
|
| |
This commit is still way too big, but I couldn't make it smaller.
It transitions the old CSS parser to the new parser. CSS parsing is now
tokenized, everything else is probably still buggy.
|
|
|
|
| |
So far that parser is unused.
|
|
|
|
| |
And make the struct public, so we can use it in signal handlers.
|
| |
|
|
|
|
|
|
| |
Instead of an error vfunc, have the tokenizer vfunc take a GError
argument. Note that even when an error is returned, there is still a
token to be read.
|
|
|
|
| |
This is copied from an old branch of mine.
|
|
This library is meant to be the new CSS library that gets used from GDK,
GSK and GTK for string printing and parsing.
As a first step, move GtkCssProviderError into it.
While doing so, split it into GtkCssParserError (for critical problems)
and GtkCssParserWarning (for non-critical problems).
|