Matthias Clasen
50facedc47
Fix recent test breakage
...
I neglected to fix affected tests in 76b0687467
, since
ci was down at the time. Sorry about that.
2024-05-06 17:11:44 -04:00
Matthias Clasen
200cacc3ad
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Show more key event details
See merge request GNOME/gtk!7224
2024-05-05 17:29:29 +00:00
Matthias Clasen
eed3cab29f
Merge branch 'list-item-factory-docs' into 'main'
...
docs: Clarify types for BuilderListItemFactory
See merge request GNOME/gtk!7226
2024-05-05 15:00:49 +00:00
Matthias Clasen
76b0687467
Put newlines before base64 blobs
...
This makes things look a bit cleaner in the node editor, since
the first line no longer sticks out.
2024-05-05 10:16:01 -04:00
Matthias Clasen
5039dc40f8
Merge branch 'main' into 'main'
...
vulkan: Don't queue presentation if image acquisition fails
See merge request GNOME/gtk!7204
2024-05-05 04:06:44 +00:00
Doğukan Korkmaztürk
7c3de4a2da
vulkan: Recreate swapchain when it is necessary or beneficial
...
Currently, GTK does not check the result of vkAcquireNextImageKHR() and
assumes that it always succeeds. As a result, the vkQueuePresentKHR() is
unconditionally set to wait for the semaphore passed to
vkAcquireNextImageKHR() earlier.
However, if vkAcquireNextImageKHR() fails for some reason, the semaphore
passed to it does not get signalled. This causes the presentation
command to wait for the semaphore to be signalled indefinitely, which
causes GTK to hang.
This change adds error handling around vkAcquireNextImageKHR() to make
GTK recreate the Vulkan swapchain when it is necessary or beneficial and
helps avoiding situations that could cause indefinite waits.
2024-05-04 22:14:33 -04:00
Matthias Clasen
b486e9b760
inspector: Show more key event details
...
Consumed modifiers are relevant to understanding why shortcut
do or do not match, so show them.
2024-05-04 21:29:40 -04:00
Matthias Clasen
ce2fd8a0d0
NEWS: Updates
2024-05-04 21:29:40 -04:00
Hugo Carvalho
99b1b26fdb
Update Portuguese translation
...
(cherry picked from commit a249b58094
)
2024-05-04 22:23:06 +00:00
James Westman
b7e4bbaf74
docs: Clarify types for BuilderListItemFactory
...
The docs for GtkBuilderListItemFactory previously stated that the
template must extend GtkListItem. However, this is not always true.
GtkListView has headers which must extend GtkListHeader, and
GtkColumnView has its own types.
Clarified this in the GtkBuilderListItemFactory docs, and specified the
expected types in the GtkColumnView, GtkListView, and GtkGridView docs.
2024-05-04 13:20:41 -05:00
Matthias Clasen
f579b171a9
Merge branch 'gbsneto/more-win32-cleanups' into 'main'
...
Various cleanups around Win32
See merge request GNOME/gtk!7223
2024-05-03 17:27:05 +00:00
Georges Basile Stavracas Neto
f9929d15eb
gtk-demo: Remove set-but-unused variable
2024-05-03 12:30:39 -03:00
Georges Basile Stavracas Neto
c45a6ad52d
gsk/gpu: Use G_GSIZE_FORMAT for printing gsizes
...
On Windows, gsize is a long long unsigned. The compiler complains about
that.
Use G_GSIZE_FORMAT which translates to %llu on Windows, %lu on most
platforms, and sometimes just %u on rare cases.
2024-05-03 12:30:39 -03:00
Matthias Clasen
7233e38aa8
Merge branch 'gbsneto/cleanup-meson-profiler' into 'main'
...
testsuite: Remove leftover code from meson.build
See merge request GNOME/gtk!7222
2024-05-03 13:44:07 +00:00
Benjamin Otte
73ba97acd9
Merge branch 'duplicate-gl-version' into 'main'
...
glcontext: Remove duplicate check for GL version
See merge request GNOME/gtk!7221
2024-05-03 13:42:03 +00:00
Georges Basile Stavracas Neto
7d2ad604d2
win32/vulkancontext: Remove unused variable
...
Silences a compiler warning.
2024-05-03 09:52:57 -03:00
Georges Basile Stavracas Neto
45e64b915c
win32/wgl: Initialize hwnd to NULL
...
Otherwise there's a valid code path that may return it uninitialized.
2024-05-03 09:51:46 -03:00
Georges Basile Stavracas Neto
ebaef9f18b
win32/cursor: Ignore GdkPixbuf deprecation warning
...
Seems harmless to ignore this for now, other bits of code also ignore
this.
2024-05-03 09:49:46 -03:00
Robert Ancell
c73fe8ac4a
glcontext: Remove duplicate check for GL version
2024-05-03 16:40:01 +12:00
Georges Basile Stavracas Neto
8ed8f883d1
testsuite: Remove leftover code from meson.build
...
Performance tests were dropped at 5dd0d39a6b
. The 'profiler' option
was renamed to 'sysprof' by commit e915a1aa7f
.
2024-05-02 20:28:27 -03:00
Matthias Clasen
032a5afc20
Merge branch 'accessible_help_text' into 'main'
...
accessible help text
See merge request GNOME/gtk!6992
2024-05-02 17:20:17 +00:00
Matthias Clasen
0064500146
Merge branch 'michaelweghorn/a11y_role_mapping' into 'main'
...
a11y atspi: Improve mapping for container roles
See merge request GNOME/gtk!7209
2024-05-02 01:33:02 +00:00
Matthias Clasen
4582ddcad9
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Name some idles
See merge request GNOME/gtk!7218
2024-05-02 01:30:42 +00:00
Matthias Clasen
8bb2720494
icontheme: Move css style code where it belongs
...
Move gtk_icon_theme_lookup_symbolic_colors to gtkcssstyle.c, and
rename it to gtk_css_style_lookup_symbolic_colors.
Update all callers.
2024-05-01 16:06:16 -04:00
Matthias Clasen
3b8218a99e
gtk-demo: Name some idles
...
These show up in profiles, so give them a name.
2024-05-01 16:06:16 -04:00
Matthias Clasen
9a8fa8dd82
Merge branch 'wip/chergert/fix-6684' into 'main'
...
undo: fix off-by-one when prepending to inline string
Closes #6684
See merge request GNOME/gtk!7217
2024-05-01 19:50:23 +00:00
Matthias Clasen
d6892c85dc
Merge branch 'serialize-hint-metrics' into 'main'
...
gsk: Serialize hint metrics too
See merge request GNOME/gtk!7215
2024-05-01 18:40:13 +00:00
Christian Hergert
d3c20c3269
undo: fix off-by-one when prepending to inline string
...
This fixes the conditional in istring_prepend() to match other uses,
notably to match istring_append().
Fixes #6684
2024-05-01 11:28:55 -07:00
Matthias Clasen
9904259661
gsk: Serialize hint metrics too
...
We need this to ensure that we properly roundtrip text nodes
without any changes.
2024-05-01 14:00:18 -04:00
Emin Tufan Çetin
a8fcde11de
Update Turkish translation
2024-05-01 16:19:02 +00:00
Matthias Clasen
d2d4cd64cd
Merge branch 'no-a11y-focus-events' into 'main'
...
a11y: Stop emitting Focus events
See merge request GNOME/gtk!7213
2024-05-01 15:18:42 +00:00
Matthias Clasen
2c7e68d98f
Merge branch 'matthiasc/for-main' into 'main'
...
Revert "gdk/frameclock: add mark when we discover frames may drop"
See merge request GNOME/gtk!7214
2024-05-01 12:43:52 +00:00
Matthias Clasen
6f42f8ef2c
Revert "gdk/frameclock: add mark when we discover frames may drop"
...
This reverts commit 84a304e66e
.
This produces marks that are confusing to me. They don't correlate
with actual gaps in the frame cycle and often overlap with regular
'window presented' marks. Also, the function we are emitting these
marks from is called from the get_frame_time getter, and we
definitely don't want to emit marks from there.
2024-05-01 08:03:16 -04:00
Matthias Clasen
152dd70cde
a11y: Drop the Focus event from the interface too
...
We don't use it anymore.
2024-05-01 07:57:19 -04:00
Matthias Clasen
8ec1045c87
a11y: Stop emitting Focus events
...
These have been deprecated for a long time, and we have been asked
to stop emitting them.
Related: #454
2024-05-01 07:55:47 -04:00
Matthias Clasen
46866b8a66
Merge branch 'matthiasc/for-main' into 'main'
...
vulkan: Improve logging around caches
See merge request GNOME/gtk!7208
2024-04-30 16:11:25 +00:00
Matthias Clasen
9df6f802f2
gtk-demo: Better accessibility for the sidebar
...
Add an accessible description saying how many search reasults
we have. This is an experiment.
Related: #6678
2024-04-30 11:54:56 -04:00
Michael Weghorn
ad8613876c
a11y atspi: Improve mapping for container roles
...
GTK_ACCESSIBLE_ROLE_GENERIC is for
"a nameless container that has no semantic meaning of its own",
for which AT-SPI role ATSPI_ROLE_PANEL [1]
("A generic container that is often used to group
objects.") fits better than ATSPI_ROLE_FILLER
("A object that fills up space in a user interface."),
so map to this one.
With this in place, widgets like GtkBox are again
reported with the panel role on AT-SPI level after
commit a86923de94
("a11y: Change the role for many containers"),
whose commit message suggests that the change
on the AT-SPI level was unintended.
For GTK_ACCESSIBLE_ROLE_GROUP, use the corresponding
ATSPI_ROLE_GROUPING ("A group of related widgets.
This group typically has a label.").
[1] https://docs.gtk.org/atspi2/enum.Role.html
2024-04-30 14:44:11 +02:00
Matthias Clasen
1bbca0cd25
vulkan: Don't forget to update the cache size
...
In order for the size change check to make sense, vk_pipeline_cache_size
needs to correspond to the size of the cache we last wrote to disk.
We were forgetting to update it after saving the cache, so the
check was ineffective.
2024-04-30 08:28:39 -04:00
Matthias Clasen
83784c17a3
vulkan: Improve logging around caches
...
Add some more logging around the pipeline cache.
2024-04-30 08:28:39 -04:00
Matthias Clasen
3f46d0f2fa
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Improve logging
See merge request GNOME/gtk!7207
2024-04-30 11:59:06 +00:00
Matthias Clasen
ef1ff8313f
gsk: Improve logging
...
Log the shader compilation with sufficient detail.
2024-04-30 07:36:42 -04:00
Matthias Clasen
119a07e055
vulkan: Add a profiler mark for pipeline cache save
...
This is a rare event, and the file isn't small, so show it in profiles.
2024-04-30 07:36:42 -04:00
Matthias Clasen
abfd94d2d9
Merge branch 'matthiasc/for-main' into 'main'
...
vulkan: Add profiling to Vulkan initialization
See merge request GNOME/gtk!7205
2024-04-29 23:09:15 +00:00
Matthias Clasen
6022fbcdf8
vulkan: Add profiling to Vulkan initialization
...
This helps understanding where our startup time is spent.
2024-04-29 18:28:03 -04:00
Matthias Clasen
744016e768
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Drop statistics from GSK_DEBUG=renderer
See merge request GNOME/gtk!7203
2024-04-29 18:30:59 +00:00
Benjamin Otte
d39f50a4ee
Merge branch 'wip/otte/for-main' into 'main'
...
dmabuf: Use narrow range instead of full range
Closes #6672
See merge request GNOME/gtk!7202
2024-04-29 16:28:28 +00:00
Matthias Clasen
c23d3c4406
gsk: Add debug spew to renderer selection
...
Reshuffle things a bit and make GSK_DEBUG=renderer print out
more information about why renderers were skipped or selected.
2024-04-29 12:28:15 -04:00
Matthias Clasen
1e2eae4ddf
gsk: More detailed debug spew
...
Include information about why a renderer was selected in
GSK_DEBUG=renderer.
2024-04-29 12:12:22 -04:00
Matthias Clasen
77eb3df7c0
gsk: Drop statistics from GSK_DEBUG=renderer
...
This only works with the old gl renderer, and it interferes with
the setup information that is printed by that category.
2024-04-29 12:12:22 -04:00