Commit Graph

79963 Commits

Author SHA1 Message Date
Fran Dieguez
29bbd1f329 Update Galician translation 2024-06-11 21:00:59 +00:00
Rachida SACI
1892761b46 Update Kabyle translation 2024-06-07 02:24:11 +00:00
Matthias Clasen
b237d76b1a Merge branch 'michaelweghorn/gtk-4-14_a11y_label_name' into 'gtk-4-14'
a11y: Use text instead of label for GtkLabel's a11y name [GTK 4.14 backport]

See merge request GNOME/gtk!7317
2024-05-31 20:00:04 +00:00
Michael Weghorn
3143ab887e a11y: Use text instead of label for GtkLabel's a11y name
Update the `GTK_ACCESSIBLE_PROPERTY_LABEL` property
in `gtk_label_set_text_internal` using the new text
instead of using the label in
`gtk_label_set_label_internal`.

While the `label` "includes any embedded underlines
indicating mnemonics and Pango markup" [1], the
`text` is the "text is as it appears on screen" [2],
which is more suitable for the accessible name.

With this in place, the text is reported as the
accessible name again after

    commit d5b34aecdd
    Date:   Wed Jan 17 12:49:38 2024 +0100

        a11y: Remove special handling of accessible names for static text widgets

[1] https://docs.gtk.org/gtk4/method.Label.get_label.html
[2] https://docs.gtk.org/gtk4/method.Label.get_text.html

Fixes: #6732
Fixes: #6735
(cherry picked from commit 317e68a58c)
2024-05-30 07:55:44 +02:00
Matthias Clasen
1dbea91db4 Merge branch 'wip/xdg-dialog-4-14' into 'gtk-4-14'
gdk/wayland: Implement support for xdg-dialog Wayland protocol [4.14]

See merge request GNOME/gtk!7256
2024-05-29 23:16:34 +00:00
Matthias Clasen
355a9f4d13 Merge branch 'gtk-4-14-backports' into 'gtk-4-14'
[4.14] macOS backports

See merge request GNOME/gtk!7292
2024-05-29 23:14:49 +00:00
Matthias Clasen
0512da0ad4 Merge branch 'windows-fixes-backport' into 'gtk-4-14'
Backport: 32-bit Windows build and runtime fixes for NGL and Vulkan

See merge request GNOME/gtk!7307
2024-05-29 20:39:14 +00:00
Chun-wei Fan
9c478afbd7 gskvulkandevice.c: Put Vk[Pipeline|RenderPass] in structures
This way, we can simply duplicate the keys as separate pointers to store
the corresponding Vulkan handles so that we can safely hash them, as
Vulkan handles may or may not be pointers depending on the target
platform.

This will fix builds on 32-bit Windows at least.
2024-05-29 18:44:18 +08:00
Chun-wei Fan
757e35cf67 gdkvulkancontext.c: Use pointers to hash VkShaderModule
VkShaderModule's may or may not be pointers depending on the target
platform, so use pointers to hash those handles to be safe, and retrieve
them from hashes accordingly.

Fixes build on 32-bit Windows at least.
2024-05-29 18:44:06 +08:00
Chun-wei Fan
1029238d59 gskvulkanmemory.c: Use VK_NULL_HANDLE for VkDeviceMemory
...rather than NULL, so that things will build fine on non-LLP, non-64-bit
systems.
2024-05-29 18:43:55 +08:00
Chun-wei Fan
2312949713 gsk: Call glDeleteSync() directly
This function does not use the standard __cdecl calling convention on
Windows, meaning using g_clear_pointer() on it directly will cause
crashes on 32-bit Windows.  Just call it directly if the GLsync it uses
exists.
2024-05-29 18:43:38 +08:00
Benjamin Otte
79bf324468 Merge branch 'cherry-pick-3c149142' into 'gtk-4-14'
gsk: use the correct memory type index

See merge request GNOME/gtk!7291
2024-05-23 18:24:03 +00:00
Michael Catanzaro
d0641a656c text: fix critical in paste_received
Here we calculate the length only in the truncate_multiline condition.
Then we pass pos - 1 to gtk_accessible_text_update_contents() as the end
position, triggering this critical that checks to ensure start <= end.
Fix it by always calculating the length of the string that we insert.

This is the first bug fixed as a result of enabling fatal criticals by
default in Epiphany! 🎉

Fixes #6734


(cherry picked from commit eb4993d3fb)
2024-05-23 16:09:42 +00:00
Carlos Garnacho
726a6a883a gdk/wayland: Implement support for xdg-dialog Wayland protocol
This protocol lifts some functionality from the gtk-shell protocol,
namely the ability to tag dialogs as modal. Ensure to use this
new protocol if available for the task, instead of the gtk-shell
protocol.
2024-05-23 12:16:14 +02:00
Carlos Garnacho
a9513b6200 build: Handle in-tree copies of wayland protocols
Convert the array managing the Wayland protocols to contain
dictionary objects for each of the protocol definitions, in order
to make it easier to extend for extra keys in them.

And also add one such extra 'required' key, so that we can
optionally build protocols depending on the wayland-protocol
version detected at runtime. This is necessary to add fallbacks
for upstream protocols without necessarily bumping GTK dependency,
some versioning handling of private protocols was added too
for this purpose, so we can have in-tree copies of them.
2024-05-23 12:16:09 +02:00
Mat
605d1e4043 gdkmacossurface: Set surface before accessing it
Silences the following critial:
_gdk_macos_surface_update_fullscreen_state: assertion
'GDK_IS_MACOS_SURFACE (self)' failed
2024-05-23 01:40:48 +03:00
Mat
e29d84abdb macos: Take shadows into account when positioning popups
Otherwise popups will be misaligned. This becomes noticeable when larger
shadows are used, like in libadwaita.

Regression in 08216dcee9
2024-05-23 01:40:03 +03:00
Thomas Holder
32c765088d macOS: Dock "Quit" invokes "app.quit" action
Allows the application to handle "Dock icon > Quit" the same as
"Application menu > Quit".

Requires GtkApplication's `register-session` property.

Suitable replacement for gtk-mac-integration's
`NSApplicationBlockTermination` signal.
2024-05-23 01:39:30 +03:00
Benjamin Otte
3ae9c7381b Merge branch 'wip/otte/for-main' into 'main'
gsk: use the correct memory type index

See merge request GNOME/gtk!7287

(cherry picked from commit 3c1491423a)

130a6fe0 gsk: use the correct memory type index
2024-05-22 22:07:30 +00:00
Matthias Clasen
db444e6d4a Merge branch 'inspector-hint-style-crash' into 'gtk-4-14'
[GTK 4.14] inspector: Prevent crash when hint style isn't set

See merge request GNOME/gtk!7277
2024-05-21 11:06:37 +00:00
Mat
f426ac6f54 inspector: Prevent crash when hint style isn't set
The hint style can be null, e.g. on macOS.
2024-05-20 23:31:39 +03:00
Matthias Clasen
a2fc5eb3f8 inspector: Avoid writing settings back needlessly
We were a bit careless and were writing some values back to the
GtkSettings on init, possibly with rounding errors. Avoid that.
2024-05-20 22:48:27 +03:00
Balázs Úr
b76c2967e3 Update Hungarian translation 2024-05-19 23:42:17 +00:00
Jordi Mas i Hernandez
27d75be15e Update Catalan translation 2024-05-15 19:53:51 +00:00
Jordi Mas i Hernandez
8ccc36c389 Update Catalan translation 2024-05-15 18:02:46 +00:00
Matthias Clasen
995eb418a3 gsk: Speed up mask nodes with cairo
Switch symbolc icon drawing from color-matrix to mask nodes
make the performance of the iconscroll demo crater (from 60fps
to 10fps).

Apply the same optimization we already have for color-matrix
nodes when drawing mask nodes. This gets us back to 60fps.

Fixes: #6700
2024-05-10 21:41:43 -04:00
Hugo Carvalho
d73d5819d5 Update Portuguese translation 2024-05-09 16:03:20 +00:00
Hugo Carvalho
40e99590e7 Update Portuguese translation 2024-05-09 16:01:45 +00:00
Hugo Carvalho
a249b58094 Update Portuguese translation 2024-05-04 22:22:28 +00:00
Matthias Clasen
93bb2200f4 Post-release version bump 2024-05-02 22:07:13 -04:00
Matthias Clasen
8593797a6f 4.14.4 4.14.4 2024-05-02 19:33:26 -04:00
Matthias Clasen
dd2349aa0b Merge branch '4-14-backports' into 'gtk-4-14'
roaring: Fix some ubsan warnings

See merge request GNOME/gtk!7219
2024-05-02 17:16:40 +00:00
Christian Hergert
4d8bb515fb 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 20:57:51 -04:00
Matthias Clasen
957ff91fa5 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 20:57:51 -04:00
Matthias Clasen
839128200f a11y: Drop the Focus event from the interface too
We don't use it anymore.
2024-05-01 20:57:51 -04:00
Matthias Clasen
8926fa3473 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 20:57:51 -04:00
Matthias Clasen
a1abdc2c06 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-05-01 20:57:51 -04:00
Matthias Clasen
2acd04e5b3 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-05-01 20:57:51 -04:00
Matthias Clasen
2aabbdf069 x11: Implement a missing method
Vulkan on X11 was getting spew for missing an empty_frame
implementation.
2024-05-01 20:57:51 -04:00
Benjamin Otte
fa88ca15c0 dmabuf: Use narrow range instead of full range
It's way more common, and Mutter uses it, too.

Avoid visual glitches when going in/out of offload.

Fixes #6672
2024-05-01 20:57:51 -04:00
Matthias Clasen
d9b64c7952 More consistency fixes for texture utils
Be consistent about filename vs path.
2024-05-01 20:57:51 -04:00
Matthias Clasen
2ca10228b3 All non-integral scales in texture utils
This might be used with fractional scales in the future.
2024-05-01 20:57:51 -04:00
Matthias Clasen
16f8b79567 scaler: Consistency fixes
Follow the pattern that we use in GDK:
scale_factor = int
scale = double
2024-05-01 20:57:51 -04:00
Matthias Clasen
4c133b4c2a Consistency fixes for texture utils
Use the with_fg naming consistently.
2024-05-01 20:57:51 -04:00
Matthias Clasen
4e1ca384a4 testsuite: Make offload tests more robust
Skip the offload tests when we find ourselves in situations
where offloading won't work.
2024-05-01 20:57:51 -04:00
Matthias Clasen
e37e44a6bd reftests: Stop using xpm images
We are phasing out the fringe pixbuf loaders, so xpm is going
away as a default-supported image format.
2024-05-01 20:51:58 -04:00
Matthias Clasen
e10f26fc8a docs: Clarify the cairo interaction section
This was giving outdated advice.
2024-05-01 20:51:58 -04:00
Matthias Clasen
d09a678165 Speed up symbolic svg loading
If the svg doesn't use the symbolic style classes, we can avoid
loading it multiple times.

This brought the time for loading system-run-symbolic at 256@2
from 6.8ms down to 2ms.
2024-05-01 20:51:58 -04:00
Matthias Clasen
378758e68b Reencode all our symbolic pngs
This adds the only-foreground information and will let us use
these symbolics more efficiently.
2024-05-01 20:51:58 -04:00
Matthias Clasen
64923b3e60 Add 'only foreground' to texture utility api
Add an 'only_fg' argument to all our internal texture utility
api, so GtkIconTheme can find out if a symbolic png or svg uses
colors beyond the foreground or not.

This information is used in gtk_symbolic_paintable_snapshot_symbolic
to optimize rendering of such symbolic icons.
2024-05-01 20:51:58 -04:00