René de Hesselle
9aeb5be8ad
gdk: Use subpixel_layout on macOS
2023-08-24 15:30:03 +02:00
René de Hesselle
007dd55a71
Re-enable macOS CI on new self-hosted runner
2023-08-24 15:30:03 +02:00
Matthias Clasen
7a05e40ce7
Merge branch 'matthiasc/for-main' into 'main'
...
Add some more arc tests
See merge request GNOME/gtk!6330
2023-08-24 12:20:13 +00:00
Matthias Clasen
8d0654db6b
Add some more arc tests
2023-08-24 07:40:05 -04:00
Matthias Clasen
63d5615fe7
Merge branch 'dboles/issue6001-ShortcutsWindow-programmatic' into 'main'
...
Add API to programmatically build ShortcutsWindow
Closes #6001
See merge request GNOME/gtk!6249
2023-08-24 10:40:34 +00:00
Matthias Clasen
37d18816be
menubutton: Don't assume the root is a window
...
The only thing this assumption does is cause
criticals, so remove it.
Fixes : #6055
2023-08-24 06:30:55 -04:00
Matthias Clasen
f1de7a524c
Merge branch 'matthiasc/for-main' into 'main'
...
demo cosmetics
See merge request GNOME/gtk!6329
2023-08-24 10:17:44 +00:00
Fran Dieguez
644692a2e0
Update Galician translation
2023-08-24 06:19:48 +00:00
Matthias Clasen
da2e8b78c2
Merge branch 'matthiasc/for-main' into 'main'
...
demo cosmetics
See merge request GNOME/gtk!6329
2023-08-24 03:47:00 +00:00
Matthias Clasen
0b5a6ecbff
demos: Cosmetics
2023-08-23 23:20:17 -04:00
Matthias Clasen
9a6aac0459
path spinner demo: Don't crash
2023-08-23 23:18:59 -04:00
Benjamin Otte
8aaecc3416
gltexture: Restore previous GL context
...
Texture downloads can be initiated due to the weirdest reasons - and if
they cause a GL context to be changed, it'd be basically unpredictable
when the GL context changes.
An example is the Cairo renderer - if it needs to draw a GL texture, it
will download it.
Now that no longer changes the GL context.
2023-08-24 05:00:29 +02:00
Matthias Clasen
d3f9b3e28a
Merge branch 'matthiasc/for-main' into 'main'
...
arc: Fix the derivative
See merge request GNOME/gtk!6328
2023-08-24 02:45:58 +00:00
Matthias Clasen
4229a37e90
arc: Fix the derivative
...
Scale the derivative such that computing the arc length
of a unit quarter circle wil produce the expected result
of PI/2.
2023-08-23 22:18:52 -04:00
Matthias Clasen
12297fd88a
arc curve: Simplify derivative
2023-08-23 22:11:22 -04:00
Matthias Clasen
7943610066
curve: Fix arc decomposition
2023-08-23 22:11:15 -04:00
Matthias Clasen
e19246d2db
tests: Include arcs in curve tests
2023-08-23 22:10:51 -04:00
Matthias Clasen
e70117bd9f
Merge branch 'mcatanzaro/#6056' into 'main'
...
notebook: fix critical when switching page
Closes #6056
See merge request GNOME/gtk!6327
2023-08-24 01:09:19 +00:00
Michael Catanzaro
20c4e24b74
notebook: fix critical when switching page
...
It's expected that gtk_widget_get_root() will return NULL if the widget
tree does not contain a root widget. I don't know what that means or why
it happens, but it's true in gnome-control-center's network panel when
displaying the OpenVPN configuration dialog. We need to handle it.
Fixes #6056
2023-08-23 15:51:08 -05:00
Matthias Clasen
3c5efbc77e
Merge branch 'wip/matthiasc/arcs' into 'main'
...
path: Add arcs
See merge request GNOME/gtk!6313
2023-08-23 19:17:01 +00:00
Matthias Clasen
f6c2b6bb88
Make foreach work efficiently with arcs
2023-08-23 14:51:31 -04:00
Matthias Clasen
4ab03e79b7
Drop some unnecessary code
...
We tell path_foreach to split into lines or cubics,
so no point in having code to handle quads and arcs.
2023-08-23 14:33:25 -04:00
Matthias Clasen
7a12abdea3
Incorporate review feedback
2023-08-23 14:16:43 -04:00
Matthias Clasen
36ca1f10dc
Add an arc demo
...
Make a circular spinner to see how well arcs
do for circles.
2023-08-23 13:45:12 -04:00
Matthias Clasen
07a92c1690
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Fix gsk->gtk links
See merge request GNOME/gtk!6324
2023-08-23 16:45:26 +00:00
Matthias Clasen
0f7b9e686c
Add a rounded rect test
...
This checks that our path-in-fill computations
agree with rounded_rect_contains_point. Sadly,
they don't do that, 100%.
2023-08-23 12:43:52 -04:00
Matthias Clasen
71584107b0
Add gsk_path_builder_html_arc_to
...
This one draws circular arcs with a given radius.
2023-08-23 12:43:52 -04:00
Matthias Clasen
88c0ace644
Make gsk_path_builder_svg_arc_to public
...
This is useful to port SVG paths using this syntax.
2023-08-23 12:43:52 -04:00
Matthias Clasen
d33ed4f9ab
path: Add elliptical arcs
...
Add a new curve type for elliptical arcs
and use it for rounded rectangles and circles.
We use the 'E' command to represent elliptical
arcs in serialized paths.
2023-08-23 12:43:52 -04:00
Matthias Clasen
a63af177a4
docs: Fix gsk->gtk links
...
gi-docgen can't handle these, since we don't have
a dependency.
2023-08-23 11:38:13 -04:00
Piotr Drąg
43c8e136b5
Update Polish translation
2023-08-23 16:43:05 +02:00
Matthias Clasen
efd597c6ed
Merge branch 'default-get-current-image' into 'main'
...
Implement gdk_paintable_default_get_current_image ()
See merge request GNOME/gtk!6303
2023-08-23 10:53:12 +00:00
Fran Dieguez
024a753a6a
Update Galician translation
2023-08-23 07:24:01 +00:00
Danial Behzadi
e1dd3fb801
Update Persian translation
2023-08-23 00:18:33 +00:00
Ekaterine Papava
82011569ce
Update Georgian translation
2023-08-22 21:14:18 +00:00
Sabri Ünal
747c9c4f94
Update Turkish translation
2023-08-22 20:18:57 +00:00
Matthias Clasen
7d7a090875
Merge branch 'wip/smcv/i387' into 'main'
...
tests: Accept slightly different numeric results
Closes #6051
See merge request GNOME/gtk!6320
2023-08-22 17:34:10 +00:00
Simon McVittie
0f125aad90
tests: Accept slightly different numeric results
...
FLT_EPSILON is the distance between 1.0 and the next distinct floating
point number, and doesn't necessarily have anything to do with the
precision we can expect from a series of floating-point calculations.
Experimentally, 1e-6 is achievable, even on platforms with unusual
floating point implementations like i387.
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/6051
Bug-Debian: https://bugs.debian.org/1050076
Signed-off-by: Simon McVittie <smcv@debian.org>
2023-08-22 17:24:17 +01:00
Matthias Clasen
a7d5796750
Merge branch 'path-tool-tweak' into 'main'
...
path-tool: Reorganize options
See merge request GNOME/gtk!6323
2023-08-22 16:19:19 +00:00
Matthias Clasen
79e132ab7b
path-tool: Reorganize options
...
Put fill and stroke options into their own group.
This helps produce understandable --help output.
2023-08-22 09:56:43 -04:00
Danial Behzadi
85957b5d3e
Update Persian translation
2023-08-22 13:39:46 +00:00
Matthias Clasen
373972b8ca
Merge branch 'fix-wayland-crash' into 'main'
...
wayland: Don't assume the shell protocol
Closes #6048
See merge request GNOME/gtk!6322
2023-08-22 13:13:51 +00:00
Matthias Clasen
30e6d70b14
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Tweaks
See merge request GNOME/gtk!6321
2023-08-22 13:07:42 +00:00
Matthias Clasen
c78b34649b
wayland: Don't assume the shell protocol
...
The gtk_shell proxy will be NULL if the compositor
is not gnome-shell. Handle that without crashing.
Fixes : #6048
2023-08-22 08:27:23 -04:00
Matthias Clasen
b3fe68ca95
docs: Tweaks
2023-08-22 07:56:27 -04:00
Daniel Mustieles
417888f847
Updated Spanish translation
2023-08-22 13:25:53 +02:00
Benjamin Otte
de8fdd822c
Merge branch 'wip/otte/for-main' into 'main'
...
widget: Remove unused headers from gtkwidget.h
See merge request GNOME/gtk!6319
2023-08-22 07:38:57 +00:00
Matthias Clasen
ee8e6ac546
Merge branch 'matthiasc/for-main' into 'main'
...
Make sure stroke bounds are big enough
See merge request GNOME/gtk!6318
2023-08-22 05:36:16 +00:00
Matthias Clasen
486674927a
Make sure stroke bounds are big enough
...
Our standard 'empty path' in gtk4-node-editor
was getting its pointy corners cut off.
2023-08-21 23:59:08 -04:00
Matthias Clasen
acf9612ed8
docs: Start a section on paths
2023-08-21 23:59:08 -04:00