Timm Bäder
bec55e216c
aboutdialog: Fix code snippets
...
Define all variables and fix a missing comma in the first
gtk_show_about_dialog call.
2017-10-11 12:55:01 +02:00
Timm Bäder
0f8abcd112
applicationwindow: Fix code sample
...
Declare all variables, use proper GtkApplication constructor and the
right GTK_APPLICATION() cast for gtk_application* API.
2017-10-11 12:41:47 +02:00
Timm Bäder
236098f89b
togglebutton: Fix code snippet
...
Remove gtk_box_pack_start usage, gtk_dialog_get_content_area, fix wrong
gtk_dialog_new parameters and actually add a output_state callback.
2017-10-11 12:35:55 +02:00
Timm Bäder
cc5fb1db03
gtksettings: Fix code snippet
...
gtk_init does not take any arguments anymore and
GTK_TYPE_IMAGE_MENU_ITEM is gone.
2017-10-11 12:21:20 +02:00
Timm Bäder
8ff713840b
label: Make all code snippets properly compile
2017-10-11 12:18:22 +02:00
Timm Bäder
b2fd6dd3dd
accellabel: Document new API
2017-10-11 11:08:46 +02:00
Timm Bäder
e19dae4b74
conview: Fix rubberband coordinates when scrolling
2017-10-11 10:55:20 +02:00
Timm Bäder
21108475a8
iconview: Remove double-MAX when updating rubberband
2017-10-11 10:50:03 +02:00
Timm Bäder
9455c92b99
rendericon: Fix texture transformation
...
Use the one from snapshot_icon, which works.
2017-10-11 09:24:35 +02:00
Timm Bäder
c8add3d169
modelmenuitem: Fix icon/label alignment
...
gtk_box_pack_end will put the label child at the right side of the label
(in LTR orientation), but we want it left, directly next to the icon.
Also remove the spacing from the box child as this is a theme thing.
2017-10-11 09:03:40 +02:00
Timm Bäder
b3fedda29e
grid: Only pass baselines to children that request it
2017-10-11 08:50:21 +02:00
Timm Bäder
e7e3ef9d3e
grid: Simplify allocating children
...
allocation->x and allocation->y are always 0. MAX'ing width/height with
1 is also wrong now since 0 is a valid width/height for widgets.
2017-10-11 08:50:21 +02:00
Timm Bäder
804476a07f
eventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps
...
The > 1 meant it only emits the signal for -2/+2 steps.
2017-10-11 08:50:21 +02:00
Timm Bäder
ac7e1081b5
tests: Add testgridbaseline
...
Which shows that GtkGrid currently computes baselines for all rows even
though not all of them might request a baseline.
2017-10-11 08:50:18 +02:00
Timm Bäder
abed139a59
cssnode: Delay getting the parent style until we need it
...
There's an early return before.
Look at all those saved cycles.
2017-10-11 07:35:09 +02:00
Matthias Clasen
5d86d209e9
Don't set child position in a ui file
...
It is not necessary, and causes assertions in some of
our tests.
2017-10-10 19:40:29 -04:00
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