Benjamin Otte
0836e8cf59
cssnode: Don't put wrong styles in the style cache
...
~Company ╡ so TL;DR: we put the static style in the cache, but then
⤷ ╡ compute a child style from the animated style in the cache
⤷ ╡ and we put the child style also in the cache (because
⤷ ╡ it's not animated)
⤷ ╡ then we run the animation, but reuse the cache every time
⤷ ╡ for both child and parent
⤷ ╡ so after the animation is done, we end up with a cache that
⤷ ╡ has the correct static style for the parent but an
⤷ ╡ incorrect static style for the child
⤷ ╡ because that static style was computed from the
⤷ ╡ initial animated style
This fixes https://bugzilla.gnome.org/show_bug.cgi?id=763517
2017-10-10 21:45:18 +02:00
Timm Bäder
a22ef67b17
cssnodedeclaration: Add gtk_css_node_declaration_to_string
2017-10-10 20:59:57 +02:00
Timm Bäder
7e8f2f6178
build: Drop redundant workaround
...
This is fixed and we require a meson > 0.39 anyway.
2017-10-10 12:53:06 +02:00
Timm Bäder
af734c4007
rendernode: Don't leak mem_surface
2017-10-10 09:49:35 +02:00
Timm Bäder
657983cfda
Don't try to snapshot invisible icons
...
These spew criticals when width == 0 || height == 0.
2017-10-10 09:49:35 +02:00
Timm Bäder
f50832864e
scalebutton: Fix comparison for empty icon list
2017-10-10 09:49:35 +02:00
Timm Bäder
c1af127c28
stylecontext: Fix doc comment
...
There is no @cr here anymore.
2017-10-10 09:49:35 +02:00
Timm Bäder
63eb3517be
GdkDisplay: Add a private _emit_opened
...
So we don't have to use the slower g_signal_emit_by_name in startup
paths.
2017-10-10 09:49:35 +02:00
Timm Bäder
4a03e86d4f
textdisplay: Remove widgets parameter from gtk_text_layout_draw
...
All calls in gtk+ were passing NULL anyway.
2017-10-10 09:49:35 +02:00
Timm Bäder
b994cac6dd
grid: Drop priv pointer
2017-10-10 09:49:35 +02:00
Matthias Clasen
a4deb7e7b4
Reshuffle the css tests a bit
2017-10-10 00:18:21 -04:00
Matthias Clasen
8c41365437
Reshuffle the a11y tests a bit
2017-10-10 00:16:31 -04:00
Matthias Clasen
c57b402d9d
Add an install-tests option
...
Use this to enable or disable installed tests.
2017-10-10 00:14:48 -04:00
Matthias Clasen
a45e497fdf
Install css api test again
2017-10-09 23:35:19 -04:00
Matthias Clasen
a2ee124d99
Install css style tests again
...
Reinstate the installed tests for css style.
2017-10-09 23:32:13 -04:00
Matthias Clasen
6c294e6804
Install css parser tests again
...
Reinstate the installed tests for the css parser.
2017-10-09 23:29:10 -04:00
Matthias Clasen
e5aa2021a0
Install css node tests again
...
Reinstate the installed tests for css nodes.
2017-10-09 23:24:23 -04:00
Matthias Clasen
366fb44d20
Fix docs build
...
this include file can't be found, so just do without it.
2017-10-09 21:58:50 -04:00
Matthias Clasen
07b1030438
Towards a working docs build
...
Add back images, content_files and expand_content files.
2017-10-09 19:36:12 -04:00
Anders Jonsson
709a1ec287
Update Swedish translation
2017-10-09 23:19:22 +00:00
Matthias Clasen
6bfdd772a5
Towards a working docs build
...
Pass mode: 'none' so escaping of <> in doc comments works.
2017-10-09 19:07:05 -04:00
Marek Cernocky
9ee414891c
Updated Czech translation
2017-10-09 21:32:02 +02:00
Matej Urbančič
3aeacb2faa
Updated Slovenian translation
2017-10-09 20:54:24 +02:00
Piotr Drąg
8eb39bd5ce
Update Polish translation
2017-10-09 20:42:22 +02:00
Piotr Drąg
5678b70faf
gdk: Translate some more key names
...
These are used in the Keyboard panel of GNOME Settings.
https://bugzilla.gnome.org/show_bug.cgi?id=787866
2017-10-09 20:33:14 +02:00
Marek Kasik
3d233743ec
printing: Don't show duplicate printers
...
Check UUID for printers obtained via DNSSD whether
they are already installed on local CUPS server.
Don't show such printers.
Not all printers published via DNSSD have UUID entry though.
https://bugzilla.gnome.org/show_bug.cgi?id=786794
2017-10-09 17:54:50 +02:00
Matthias Clasen
49ab093f26
Add a transform node reftest
2017-10-08 23:19:35 -04:00
Matthias Clasen
4db1a7541a
Add another cross-fade reftest
2017-10-08 22:45:05 -04:00
Matthias Clasen
672fb60879
snapshot: Use a better placeholder
...
An empty container has the same effect as transparency
with the cairo renderer, but creates black with Vulkan.
To avoid this, explicitly use a transparent color node.
This fixes the css blendmode example in gtk4-demo with
the Vulkan renderer.
2017-10-08 22:19:22 -04:00
Matthias Clasen
e3f5a8bd47
Regenerate blendmodes reftest
2017-10-08 21:13:43 -04:00
Matthias Clasen
76aa237cce
Fix blendmode shader
...
My reading of the spec formulas was imperfect.
2017-10-08 21:12:22 -04:00
Matthias Clasen
090ec2e56f
Revise coordinate handling for blend nodes
...
This is the same change that was applied to cross-fade
nodes.
2017-10-08 20:06:33 -04:00
Matthias Clasen
cd4892c50a
Stop using gsk_cairo_node_new_for_surface
...
Best to avoid handling the surface ourselves.
2017-10-08 20:05:16 -04:00
Matthias Clasen
6e5ded8492
Add another blendmodes reftest
...
This tests all blendmodes. Again, the Vulkan renderer fails.
2017-10-08 19:58:09 -04:00
Matthias Clasen
5280a2c874
Revise the coordinate handling one more time
...
This makes the new reftests pass and hopefully does not
break other things.
2017-10-08 19:21:52 -04:00
Daniel Boles
2cd65158a0
Dialog: Clarify that response ID 0 is not reserved
...
I only got so far in math, but it looks to me like zero isn’t positive.
We don’t reserve it, so be clear about that.
2017-10-08 22:21:12 +01:00
Daniel Boles
77b75bdab1
MenuButton: Document the correct no-direction icon
...
Document open-menu-symbolic, which we use, not view-context-menu, which
does not exist.
2017-10-08 21:09:42 +01:00
Matthias Clasen
87aaa5685b
Add a cross-fade node ref test
...
The Vulkan renderer doesn't pass this one either, currently.
2017-10-08 14:36:35 -04:00
Matthias Clasen
eacdeec29e
Add a blendmode node reftest
...
The Vulkan renderer doesn't pass this, currently.
2017-10-08 14:29:27 -04:00
Matthias Clasen
ab22734159
Fix application window snapshot differently
...
As Timm Baedert pointed out, the previous fix made the
menubar go on top of popovers, which is just wrong. Instead,
make gtk_window_snapshot handle all direct children of the
window, taking care to stack popovers correctly.
2017-10-08 14:03:19 -04:00
Matthias Clasen
8dc48d0322
Expand the repeat node test
...
Still not exhaustive, but enough to find some issues.
2017-10-08 13:50:41 -04:00
Matthias Clasen
1fe4e12356
Add a repeat node test
2017-10-08 12:23:18 -04:00
Matthias Clasen
df549c4e9f
Add a basic cairo node test
2017-10-08 12:21:45 -04:00
Matthias Clasen
95f29de710
Allow backend-specific reference images
...
This is not ideal, but lets us deal with differences for now.
2017-10-08 12:21:36 -04:00
Matthias Clasen
9a9aec05c0
vulkan: Fix cross-fade node coordinates
...
This is the same fix as was just committed for blendmode nodes.
2017-10-08 11:31:55 -04:00
Matthias Clasen
4d7b8f5a66
vulkan: Fix blendmode coordinate handling
...
We were node handling coordinates correctly when dealing
with differently sized child nodes in a blendmode node.
This was showing up in the gtk4-demo css blendmode example,
for blendmodes other than normal.
2017-10-08 09:02:35 -04:00
Matthias Clasen
fe6e80fdde
vulkan: Fix repeat node coordinates
...
We were not treating non-trivial child bounds right at all.
This was visible in the css blendmode cmyk example in gtk4-demo,
for the normal blendmode.
2017-10-08 09:02:35 -04:00
Matthias Clasen
9e613be8c6
inspector: Show child bounds for repeat nodes
...
The more information, the better.
2017-10-08 09:02:35 -04:00
Umang Jain
74a677a79d
Create tests for cairo node
...
https://bugzilla.gnome.org/show_bug.cgi?id=788534
2017-10-08 18:22:34 +05:30
Umang Jain
a933c7c4bd
gsk: Move gsk_cairo_node_new_for_surface into public API
...
https://bugzilla.gnome.org/show_bug.cgi?id=788534
2017-10-08 18:22:34 +05:30