| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Convert links, make things more concise.
|
| |
|
|
|
|
| |
Make the GdkRGBA heading less repetitive.
|
|
|
|
|
|
|
| |
Use this newly exported pango function, so we
can support hex colors with alpha like #rrggbbaa.
Fixes: #2931
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
We require a C compiler supporting C99 now. The main purpose of
these fallbacks was for MSVC. From what I can see this is now all supported
by MSVC 2015+ anyway.
The only other change this includes is to replace isnanf() with the
(type infering) C99 isnan() macro, because MSVC doesn't provide isnanf().
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
This function is a (private) function to parse a GdkRGBA accoridng to
the CSS specs. We should probably use it for gdk_rgba_parse(), but that
would change the syntax we accept there...
This also introduces a dependency of libgdk on libgtkcss.
So far, no users for this function exist.
|
| |
|
|
|
|
|
| |
instead of being inconsistent and not using them later, which leaves a
bunch of single letters floating among real words, not the prettiest.
|
|
|
|
|
|
| |
* We don't output spaces anywhere in the code, unlike the doc suggested.
* CSS explicitly forbids whitespace between function names and lparens:
https://stackoverflow.com/questions/13877198
|
| |
|
|
|
|
|
|
|
| |
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
|
| |
|
| |
|
|
|
|
|
|
|
| |
I want to use these inside GSK, and I'm not a fan of putting GdkRGBA
APIs into it or duplicating it into GTK.
So public API it is.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 695860958a9a2e7c825bcec4d0d42b427f0fb47e.
The change introduced an introspection ABI break.
See also: https://bugzilla.gnome.org/show_bug.cgi?id=682125
If we want to move the parse() method to be a constructor or a class
method, we'll need to do more testing or add new API.
https://bugzilla.gnome.org/show_bug.cgi?id=754990
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=754990
|
|
|
|
| |
This way 0.3 isn't printed as 0.29999999999999
|
| |
|
|
|
|
| |
Instead of Return value:
|
|
|
|
|
| |
With all element markup gone, it is time to turn off
sgml mode, and get rid of entities as well.
|
| |
|
|
|
|
| |
https://wiki.gnome.org/Design/OS/Typography
|
| |
|
|
|
|
| |
This greatly reduces the amount of xml in the docs.
|
| |
|
| |
|
|
|
|
|
|
| |
Should be "lose"
https://bugzilla.gnome.org/show_bug.cgi?id=700844
|
|
|
|
| |
GTK-Doc does not like bare '#', so let's turn them into #.
|
|
|
|
| |
Include (gdk/)fallback-c89.c as isnan() and isinf() is used.
|
| |
|
|
|
|
|
| |
gdk_rgba_parse was accepting too much nonsense, as pointed out
in bug 667485.
|
|
|
|
|
| |
This saves some manual copying.
Pointed out in bug 667473.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer
should be the first argument, and the string the second one, to allow a
more natural binding.
https://bugzilla.gnome.org/show_bug.cgi?id=635879
|
| |
|
|
|
|
|
|
|
|
|
|
| |
CSS3 defines a somewhat odd syntax for rgba() colors - the rgb values
are integers from 0 to 255 or percentages and the a value is a
float from 0 to 1. To avoid increasing the total amount of confusion
in the world, make gdk_rgb_to_string() and gdk_rgb_parse() follow
this syntax rather than using floats for r, g, and b.
https://bugzilla.gnome.org/show_bug.cgi?id=633762
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=633216
|
|
|
|
|
| |
In particular, test that serialization is not dependent on the
locale.
|
|
GdkRGBA is a boxed struct similar to GdkColor, with the difference
that it stores alpha information as well, and colors are stored in
[0..1] doubles, in the cairo spirit.
gdk_cairo_set_source_rgba() has been also added to allow easier handling
of this new type.
|