Matthias Clasen
8ac8bca52a
Fix an indentation mishap
2023-09-16 13:39:21 -04:00
Benjamin Otte
cf8f6d254e
Merge branch 'wip/otte/for-main' into 'main'
...
treemodelfilter: Yes gcc, both if branches are empty
See merge request GNOME/gtk!6401
2023-09-16 17:07:10 +00:00
Benjamin Otte
a267dfac5d
treeview: No gcc, node is not NULL
...
... so I'll add an assertion just for you.
2023-09-16 12:18:58 -04:00
Benjamin Otte
745b28ef38
treemodelfilter: Yes gcc, both if branches are empty
...
... if assertions are disabled.
2023-09-16 12:17:57 -04:00
Matthias Clasen
5c27899efa
Merge branch 'matthiasc/for-main' into 'main'
...
NEWS: Updates
See merge request GNOME/gtk!6400
2023-09-16 15:23:02 +00:00
Matthias Clasen
fd006592b5
Merge branch 'wip/corey/file-chooser-columns' into 'main'
...
File Chooser Move Column Visible to Column Header Menu
See merge request GNOME/gtk!6377
2023-09-16 14:27:52 +00:00
Matthias Clasen
201f27fe19
NEWS: Updates
2023-09-16 09:52:18 -04:00
Matthias Clasen
36c4dc8aea
Merge branch 'contour-cosmetics' into 'main'
...
contour: Fixes for circles
See merge request GNOME/gtk!6399
2023-09-16 13:18:29 +00:00
Matthias Clasen
f0bd0c3e50
contour: Add more tests for circles
...
Cover the radius 0 case, in particular.
2023-09-16 08:31:52 -04:00
Matthias Clasen
4d71ff6da1
contour: Fixes for circles
...
Make circle contours use 'foreach coordinates' for
its points. This works here, but not for general
conics. As with the other custom contours, avoid
emitting collapsed conics.
2023-09-16 08:27:18 -04:00
Matthias Clasen
6d16776e27
tests: Cosmetics
2023-09-16 08:27:08 -04:00
Piotr Drąg
7cdff6bbb3
Update Polish translation
2023-09-16 13:34:39 +02:00
Martin
bf43859bdc
Update Slovenian translation
...
(cherry picked from commit f0e0332ada
)
2023-09-16 10:12:14 +00:00
Matthias Clasen
4b45f8415f
Merge branch 'contour-cosmetics' into 'main'
...
contour: Fixes for rects and rounded rects
See merge request GNOME/gtk!6397
2023-09-15 22:30:13 +00:00
Matthias Clasen
86e0d5c13e
Merge branch 'switch-rtl' into 'main'
...
switch: Respect text direction
Closes #1489
See merge request GNOME/gtk!6396
2023-09-15 21:59:15 +00:00
Matthias Clasen
d21ee115d0
Update private path tests
...
Our parser only recognizes 'complete' rounded
rects, so don't test roundtrips for incomplete
ones.
2023-09-15 16:46:23 -04:00
Matthias Clasen
2dd8e3b0eb
contour: Add more tests for rounded rects
...
This is covering special cases where some
of the curves are omitted.
2023-09-15 16:46:23 -04:00
Matthias Clasen
6d001f79f9
contour: Fixes for rounded rects
...
Similar to the fixes for rect contours:
Handle all the special cases where empty curves
are omitted, and omit 'empty' curves in foreach.
2023-09-15 16:31:09 -04:00
Matthias Clasen
eb6ca8f39a
contour: Add more tests for rects
...
Spot-check the special cases:
rects with zero height or width.
2023-09-15 16:31:09 -04:00
Matthias Clasen
abebd92b19
contour: Fixes for rect contours
...
Handle all the special cases (zero width and/or height),
and omit 'empty' curves in foreach.
2023-09-15 16:31:09 -04:00
Matthias Clasen
014ca76334
docs: Add details
...
Spell out what gsk_path_point_get_tangent does
if there is no tangent: we return 0,0.
2023-09-15 16:31:09 -04:00
Matthias Clasen
a520f9fcf7
pathbuilder: Skip trivial curves
...
Don't add quads, cubics or conics that collapse
to a single point. This matches what we do for
lines.
2023-09-15 16:31:09 -04:00
Matthias Clasen
de724b2a57
contour: Fix some corner cases
...
Adding segments of rects or rounded rects was
not working right in cases where some of the
curves are trivial. Fix that.
2023-09-15 16:31:09 -04:00
Matthias Clasen
061637f4eb
contour: Small refactoring
...
Move some utilities out.
2023-09-15 16:31:09 -04:00
Matthias Clasen
dab1897d4e
contour: Circle cosmetics
2023-09-15 16:31:09 -04:00
Andre Klapper
9ebb030c78
CONTRIBUTING: No more mailing lists; list Matrix/Discourse as irc.gnome.org is defunct
2023-09-15 22:26:44 +02:00
Benjamin Otte
93477ec019
Merge branch 'wip/otte/for-main' into 'main'
...
rendernode: Shadow nodes need offscreen for opacity
See merge request GNOME/gtk!6382
2023-09-15 16:08:42 +00:00
Benjamin Otte
f2a71898b1
array: Add gdk_array_steal()
...
Like gdk_array_clear() but returns the previous contents.
2023-09-15 16:34:00 +02:00
Benjamin Otte
24048dce43
render-node-tool: Actually load files properly
2023-09-15 16:34:00 +02:00
Benjamin Otte
41af8ee2e2
testsuite: Add another test
...
his is the opposite of the test in 1502c21e97
.
Also change the numbers in that test so it doesn't need a ref file.
Related: #6075
2023-09-15 16:34:00 +02:00
Benjamin Otte
60c20fa6ed
vulkan: Require Vulkan 1.2
...
We need to inist on the nonuniform access beuing available and that
requires Vulkan 1.2.
Also simplifies the descriptor indexing stuff, because that's all part
of Vulkan 1.2, too.
2023-09-15 16:34:00 +02:00
Benjamin Otte
5152c13081
vulkan: Change rounded_rect_shrink()
...
Same fix as with the GL renderer
2023-09-15 16:34:00 +02:00
Benjamin Otte
e9089f65e3
gl: Change rounded_rect_shrink()
...
The code now follows gsk_rounded_rect_shrink() and with it the behavior
of the Cairo renderer and Webkit.
The old code did what the GL renderer and Cairo do, but I consider that
wrong.
I did not test Chrome.
Test attached
2023-09-15 16:34:00 +02:00
Benjamin Otte
9aaec91f95
css: Snapshot opacity filter as opacity node
...
We were using color-matrix because it was easier, but opacity can often
be optimized when color-matrix needs offscreens.
2023-09-15 03:46:27 +02:00
Benjamin Otte
1c971c595f
glrenderer: Shadows without offset do exist
...
Not for opaque contents, but stuff can be semi-transparent.
Testcase included.
2023-09-15 03:46:27 +02:00
Benjamin Otte
f8627755b5
rendernode: Shadow nodes need offscreen for opacity
...
Otherwise the shadow will not be properly computed as opaque regions
become translucent after applying opacity.
Testcase included.
2023-09-15 03:46:27 +02:00
Benjamin Otte
55ae8dc39e
gsk: Move GskRoundedRect typedef
...
typedef should go into *types.h headers so that other headers only need
to include those.
2023-09-15 03:46:27 +02:00
Matthias Clasen
dd7d145249
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Add sound to the path maze
See merge request GNOME/gtk!6395
2023-09-14 18:24:09 +00:00
Sergey Bugaev
0b2c249de3
switch: Fix CSS nodes documentation
...
A switch contains two GtkImage's whose nodes are named 'image',
not 'label'.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2023-09-14 19:35:00 +03:00
Sergey Bugaev
ea6b95f60d
switch: Respect text direction
...
In RTL, we want the active state to mean the handle is on the left.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/1489
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2023-09-14 19:35:00 +03:00
Matthias Clasen
ed44f37de4
gtk-demo: Add sound to the path maze
...
Its a game, after all.
2023-09-14 11:32:22 -04:00
Matthias Clasen
3780a5ed6a
Merge branch 'fix_visit_file' into 'main'
...
gtkfilechooserwidget: fix "Visit file" not scrolling to file
Closes #5799
See merge request GNOME/gtk!6392
2023-09-14 03:01:11 +00:00
Nelson Benítez León
fec3f0191a
gtkfilechooserwidget: fix "Visit file" not scrolling to file
...
In the "Recent" view of GtkFileChooser widget, when right
clicking and selecting "Visit file" action, the action was
failing to scroll to target file.
Fix that by using gtk_column_view_scroll_to() which can
select, focus and scroll to the file.
Fixes #5799
2023-09-13 23:47:47 +01:00
Matthias Clasen
359fa99945
Merge branch 'fun-renderer-bug' into 'main'
...
gl renderer: Keep track of source
Closes #6094
See merge request GNOME/gtk!6391
2023-09-13 21:31:30 +00:00
Matthias Clasen
5441ed2227
Merge branch 'mcatanzaro/put-event' into 'main'
...
Fix documentation of gdk_display_put_event()
See merge request GNOME/gtk!6383
2023-09-13 21:27:22 +00:00
Matthias Clasen
ec1a1d0e34
gl renderer: Don't assume an atlas
...
The source uniform may or may not point
to a glyph atlas. The optimization we do
for color nodes is only possible if it does,
so check this.
Fixes : #6094
2023-09-13 16:56:47 -04:00
Matthias Clasen
8f4fb45715
gl renderer: Keep track of source
...
We have an optimization that depends on having
the source be a glyph atlas, so keep track of
that information in the render job.
2023-09-13 16:55:01 -04:00
Matthias Clasen
9db2288064
Merge branch 'matthiasc/for-main' into 'main'
...
rendernode: Fix handling of color glyphs
See merge request GNOME/gtk!6390
2023-09-13 20:14:41 +00:00
Matthias Clasen
1502c21e97
rendernode: Fix handling of color glyphs
...
The rendernode parser was mixing up its flags.
Test included.
Related: #6075
2023-09-13 15:37:57 -04:00
Matthias Clasen
408dd4b34d
Merge branch 'macos' into 'main'
...
macOS: Clamp damage region to surface size
Closes #5812 and #6038
See merge request GNOME/gtk!6388
2023-09-13 15:33:01 +00:00