Matthias Clasen
73853f1a6b
contour: Add an assertion
2023-08-16 16:18:38 -04:00
Matthias Clasen
8634d67cff
Some fixes for gsk_path_builder_add_segment
...
We must be careful with single-point contours
that contain just a move. These never occur in
practice, but our randomized tests produce them
regularly.
2023-08-16 16:15:26 -04:00
Matthias Clasen
125ea90894
Rename an internal function
...
We want the number of ops, not the number of points.
2023-08-16 15:54:46 -04:00
Matthias Clasen
ffba5a3f42
Merge branch 'matthiasc/for-main' into 'main'
...
build: Drop some unused variables
See merge request GNOME/gtk!6297
2023-08-16 19:28:12 +00:00
Matthias Clasen
60df21213b
Merge branch 'dboles/popover-css-nodes' into 'main'
...
Popover: Fix & add to CSS nodes documentation
See merge request GNOME/gtk!6300
2023-08-16 19:16:12 +00:00
Sabri Ünal
14ba577acb
Update Turkish translation
2023-08-16 18:31:30 +00:00
Benjamin Otte
7d5ef1117e
Merge branch 'color-matrix' into 'main'
...
Color matrix node fixes & clarifications
See merge request GNOME/gtk!6290
2023-08-16 17:07:35 +00:00
Daniel Boles
af0e2bff94
Popover: Fix & add to CSS nodes documentation
...
* The `.background` class gets put on `popover`, not `content`
* Use backticks to style node and class names with monospace
* Link to GtkPopoverMenu
* Add to PopoverMenu a bit outlining how items and sections look in CSS.
2023-08-16 17:11:45 +01:00
Matthias Clasen
7d65f81d7f
Merge branch 'path-world-resource' into 'main'
...
Fix MSVC build (turn world map path into a resource)
See merge request GNOME/gtk!6296
2023-08-16 13:51:32 +00:00
Matthias Clasen
b08ecfcf9e
build: Drop some unused variables
...
We are not using gtk_private_packages at all,
so drop it.
2023-08-16 09:43:34 -04:00
Matthias Clasen
e2cd362f24
Merge branch 'fg_color_docs' into 'main'
...
gsk: Update docs for gtk_snapshot_append_layout
See merge request GNOME/gtk!6295
2023-08-16 12:52:43 +00:00
Yuri Chornoivan
1a1b6fe66b
Update Ukrainian translation
2023-08-16 11:37:47 +00:00
Sergey Bugaev
122176a3a1
gtk-demo: Turn world map path into a resource
...
The C string literal way way too long for MSVC.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2023-08-16 14:35:35 +03:00
Matthias Clasen
5beccc8208
Merge branch 'fix-pc-files' into 'main'
...
meson: Add wayland-client to gtk4-wayland requires
See merge request GNOME/gtk!6293
2023-08-16 11:29:39 +00:00
Matthias Clasen
6715a3267a
Merge branch 'remove-out-caller-allocates-from-pod-types' into 'main'
...
introspection: Remove 'caller-allocates' from POD types
See merge request GNOME/gtk!6294
2023-08-16 11:29:25 +00:00
Alexandros Theodotou
313078b77c
gsk: Update docs for gtk_snapshot_append_layout
...
Mention how to get the current theme's foreground color.
2023-08-16 20:09:15 +09:00
Sergey Bugaev
246a7cfeab
rendernode, snapshot: Slightly expand color matrix docs
...
Based on reverse engineering the color node and contrary to my
expectations, the matrix/offset is expressed in, and applied to,
unpremultiplied colors. The colors are being explicitly
unpremultiplied, transformed according to the matrix/offset, and
premultiplied back (see color_matrix.glsl). The matrix is getting
transposed.
Also, copy the same blurb to the corresponding GtkSnapshot function.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2023-08-16 13:55:04 +03:00
Sergey Bugaev
082fdfdb24
snapshot: Fix merging color matrix nodes
...
The code was appliying the matrices in the wrong order: we have to apply
the inner node's matrix first, and the outer one second. Due to the
matrices being implicitly transposed, the matrix multiplication was done
in the right order, yet the wrong matrix was being mutliplied by the
wrong offset vector.
To make the code a little easier to follow, create explicit variables
for the resulting matrix and offset (instead of reusing matrix2 and
offset2), and fix & expand the comment to document how matrix
transposition factors into this.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2023-08-16 13:54:54 +03:00
Philip Chimento
823cb714ec
introspection: Remove 'caller-allocates' from POD types
...
The (out caller-allocates) and (out callee-allocates) annotations are
meant for structured or pointer types. Plain old data types are just
regular out parameters and don't need the annotation about who allocates
them.
See glib!2005, gjs#570
2023-08-15 22:30:27 -07:00
Ekaterine Papava
cc93347fe6
Update Georgian translation
2023-08-16 03:36:32 +00:00
Xavier Claessens
d6a07cd617
meson: Add x11_dep to gtk4-x11 requires
2023-08-15 21:17:39 -04:00
Fran Dieguez
858bd9f84c
Update Galician translation
2023-08-15 23:40:15 +00:00
Matthias Clasen
be7e5c866f
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Add more details to the docs
See merge request GNOME/gtk!6292
2023-08-15 19:27:59 +00:00
Matthias Clasen
93a90bafc3
Add some statistics to the map demo
2023-08-15 13:55:46 -04:00
Xavier Claessens
090e01b383
meson: Add wayland-client to gtk4-wayland requires
2023-08-15 13:35:46 -04:00
Matthias Clasen
03a511aab4
path-tool: Make info show statistics
...
It is somewhat interesting to know how many
contours, lines, etc. a path consists of.
2023-08-15 13:33:23 -04:00
Matthias Clasen
5cf9a09c07
gsk: Add more details to the docs
2023-08-15 12:38:24 -04:00
Matthias Clasen
9558c70683
Merge branch 'dboles/signal-factory-typos' into 'main'
...
SignalListItemFactory: small doc grammar+sense fix
See merge request GNOME/gtk!6291
2023-08-15 14:36:35 +00:00
Daniel Boles
57d98a12fa
SignalListItemFactory: small doc grammar+sense fix
...
* "to to" => "to"
* "a object" => "an object"
* "its new prop is about to be unset" => "its prop is about to be unset"
2023-08-15 10:47:30 +01:00
Danial Behzadi
3dd40049a9
Update Persian translation
2023-08-14 22:35:12 +00:00
Matthias Clasen
225e626ada
Merge branch 'matthiasc/for-main' into 'main'
...
Fix GskStandardContour to have a 'good' size
See merge request GNOME/gtk!6289
2023-08-14 20:28:46 +00:00
Matthias Clasen
081f504ae4
Tweak the directions illustration
...
Still not 100% happy with it, but it is better.
2023-08-14 16:09:27 -04:00
Matthias Clasen
45aa8e4e00
Fix GskStandardContour to have a 'good' size
...
We need the size of GskStandardContour to be
at least as aligned as graphene_point_t, or
things break in hard to debug ways.
2023-08-14 15:59:45 -04:00
Matthias Clasen
87430be658
Fix up a testcase
...
I had gotten the path direction enum mixed up here.
2023-08-14 15:59:45 -04:00
Matthias Clasen
012c16ccd6
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Clean up path walk demo
See merge request GNOME/gtk!6288
2023-08-14 19:20:57 +00:00
Matthias Clasen
de0cef5d4d
Merge branch 'path-convenience' into 'main'
...
pathpoint: Add gsk_path_get_rotation
See merge request GNOME/gtk!6284
2023-08-14 19:20:40 +00:00
Matthias Clasen
e807a84967
gtk-demo: Clean up path walk demo
2023-08-14 15:19:42 -04:00
Matthias Clasen
b5e105d4f4
snapshot: Add more path api
...
Add convenience methods to fill or stroke
a path with a color.
2023-08-14 14:58:22 -04:00
Matthias Clasen
a85ab3585e
Revise gsk_path_point_get_tangent
...
Update the directions enum to allow all four
tangents to be obtained. Add an illustration
to the docs for clarity.
Update all callers.
2023-08-14 14:58:22 -04:00
Matthias Clasen
a1d40c5236
Add gsk_path_point_get_rotation
...
This returns the tangent in the form of an angle.
2023-08-14 14:58:22 -04:00
Matthias Clasen
95ea6b2615
Merge branch 'path-point-api-revision2' into 'main'
...
pathpoint: Revise argument order
See merge request GNOME/gtk!6287
2023-08-14 18:53:23 +00:00
Ekaterine Papava
82d8bc9403
Update Georgian translation
2023-08-14 18:34:10 +00:00
Matthias Clasen
536d432444
Merge branch 'path-map-demo' into 'main'
...
demos: Add a map demo
See merge request GNOME/gtk!6285
2023-08-14 17:49:26 +00:00
Yuri Chornoivan
3b8c26a116
Update Ukrainian translation
2023-08-14 17:30:53 +00:00
Matthias Clasen
6ace4b60d8
pathpoint: Revise argument order
...
In order for introspection and documentation to
not be confused, we need to have the GskPathPoint
be the first argument.
Update all callers.
2023-08-14 13:20:34 -04:00
Matthias Clasen
7601b89561
Merge branch 'fix-4986' into 'main'
...
Fix native filechooser on macOS
Closes #4986
See merge request GNOME/gtk!6272
2023-08-14 16:26:15 +00:00
Matthias Clasen
0cdd2e7008
Merge branch 'color-dialog-button-activate' into 'main'
...
Make new-style dialog buttons activatable
See merge request GNOME/gtk!6255
2023-08-14 16:26:13 +00:00
Piotr Drąg
595152bdba
Update POTFILES.in
2023-08-14 15:16:29 +02:00
Benjamin Otte
90f0733673
demos: Add a map demo
...
For now, this just shows a world map.
Once we have measures, we can make this
a little more interesting.
2023-08-14 08:41:16 -04:00
Matthias Clasen
625e83e1de
Merge branch 'wip/alice/menu-button' into 'main'
...
menubutton: Fix focus on the internal gizmo
Closes #6025
See merge request GNOME/gtk!6283
2023-08-14 11:19:21 +00:00