Matthias Clasen
621120d1d3
css: Fix an oversight in style change computation
...
Take the 'color == NULL means currentColor' trick into account
when computing the changes between two styles.
2020-02-02 16:41:14 +01:00
Matthias Clasen
b378f566d7
Compute style change based on values structs
...
We can save some time here by comparing struct by
struct and avoiding individual values comparisons
as much as possible.
2020-01-29 11:07:32 +01:00
Timm Bäder
2c9bbb9a71
GtkCssStyleChange: Only print values that really changed
2017-10-12 15:42:03 +02:00
Timm Bäder
3b44a88ddb
cssstylechange: Fix change printing
...
Only print the old value once, above the new one.
2017-07-22 19:36:05 +02:00
Timm Bäder
d3a0dfe81a
cssstylechange: Add helper function to print change
...
So I don't have to print both styles to the console, paste them both
into a file and then run diff on the 2 files anymore.
2016-02-07 19:16:26 +01:00
Benjamin Otte
6e6cbd7316
stylechange: Do the right thing when old and new style are equal
...
We don't need to compare all their CSS values to figure out that nothing
changed. We know that.
2016-01-16 23:58:37 +01:00
Benjamin Otte
5cbbc62026
widget: Pass a GtkCssStyleChange instead of a bitmask
2015-12-13 04:11:58 +01:00
Benjamin Otte
971a277419
cssnode: Change style-changed signal
...
Instead of having old and new style, now have a GtkCssStyleChange opaque
object that will compute the changes you are interested in for you.
This simplifies change signal handlers quite a bit and avoids lots of
repeated computation in every signal handler.
2015-12-12 02:16:04 +01:00