Xavier Claessens
2ba8dcebff
Apply 1 suggestion(s) to 1 file(s)
2024-04-10 15:52:42 +00:00
Xavier Claessens
95a8def7c2
Meson: Use wayland module
2024-04-10 11:43:04 -04:00
Matthias Clasen
aed4ced032
Merge branch 'broadway-port-2972-3130' into 'main'
...
[gtk4] gdk/broadway: Port !2972 and !3130 from gtk3
See merge request GNOME/gtk!4467
2024-04-10 00:12:28 +00:00
Matthias Clasen
c76c07ddfe
Merge branch 'matthiasc/for-main' into 'main'
...
testsuite: Cosmetics
See merge request GNOME/gtk!7124
2024-04-09 23:41:01 +00:00
Matthias Clasen
7b82dc7ac5
inspector: Show monitor resolution
2024-04-09 19:14:01 -04:00
Matthias Clasen
a63e9d38fb
gdk: Add private convenience api
...
Add a function to get the monitor resolution.
We may use this information in the future to make font rendering
decisions.
2024-04-09 19:13:34 -04:00
Matthias Clasen
cc8db1805d
gsk: Be safer against bad font options
...
Some combinations of hint-style and hint-metrics lead to bad glyph
placement in the glyph cache, so avoid them.
2024-04-09 19:12:49 -04:00
Matthias Clasen
948532f3c9
Deprecate gtk_widget_set/get_font_options
...
cairo font options are too low-level, and setting them directly
prevents us from doing smarter things for font rendering.
2024-04-09 19:12:41 -04:00
Matthias Clasen
8f39f8d827
testsuite: Add another test
...
This test checks that pango attributes can be specified in serialized
form.
2024-04-09 19:06:31 -04:00
Matthias Clasen
5e28c05121
testsuite: Cosmetics
...
Make the builder parser test less verbose.
2024-04-09 19:06:12 -04:00
Matthias Clasen
32d15a5858
Merge branch 'builder-gtkshortcutaction-warning' into 'main'
...
builder: Show warning for invalid action on GtkShortcut
See merge request GNOME/gtk!7121
2024-04-09 20:36:59 +00:00
Benjamin Otte
460eaac1f4
Merge branch 'wip/otte/for-main' into 'main'
...
vulkan: Handle generating mipmaps for 1x1 images
Closes #6553
See merge request GNOME/gtk!7073
2024-04-09 16:25:20 +00:00
Benjamin Otte
02d7817632
demo: Use get_fps() in fishbowl demo
...
Hopefully that leads to somewhat more reliable fps measurements
2024-04-09 17:39:36 +02:00
Benjamin Otte
3080e2974d
gpu: ceil() offscreen size before generating offscreen
...
The goal is to generate an offscreen at 1x scale.
When not ceil()ing the numbers the offscreen code would do it *and*
adjust the scale accordingly, so we'd end up with something like a
1.01x scale.
And that would cause the code to reenter this codepath with the goal to
generate an offscreen at 1x scale.
And indeed, this would lead to infinite recursion.
Tests included.
Fixes #6553
2024-04-09 17:39:32 +02:00
Juliano de Souza Camargo
be9d98ed38
Update Brazilian Portuguese translation
2024-04-09 13:31:35 +00:00
Leônidas Araújo
944274bc58
Update Brazilian Portuguese translation
...
(cherry picked from commit 235388fdcd
)
2024-04-09 13:26:40 +00:00
Sabri Ünal
b555e909c4
Update Turkish translation
2024-04-09 09:55:55 +00:00
Matthijs Velsink
c0b813940e
builder: Show warning for invalid action on GtkShortcut
...
The parsing for a `GTK_TYPE_SHORTCUT_ACTION` on a GtkShortcut in a
builder file can fail, resulting in a `NULL` GtkShortcutAction. This
currently does not result in any warnings, potentially making typos in
builder files tricky to debug.
Since `gtk_shortcut_action_parse_builder()` already sets an error if it
fails, we can just use that and simply return false.
2024-04-09 02:41:57 +02:00
Benjamin Otte
9fe9ea34fd
vulkan: Handle generating mipmaps for 1x1 images
...
Testcase included.
2024-04-08 21:06:54 +02:00
Matthias Clasen
f36f1b9829
Merge branch 'dmabuf-glarea' into 'main'
...
One approach to dmabufs in glarea
See merge request GNOME/gtk!7116
2024-04-07 17:24:33 +00:00
Matthias Clasen
2b09f5ea1e
dmabuf: Reshuffle docs slightly
...
Move related parts together, for easier understanding.
2024-04-07 13:03:13 -04:00
Matthias Clasen
f51c82a2aa
gtk-demo: Use offload for shadertoy
...
This is an easy way to verify that GtkGLArea delivers dmabufs
now, and it might have some practical uses to offload gl area.
2024-04-07 13:03:13 -04:00
Matthias Clasen
11d3be278d
glarea: Return dmabuf textures
...
Export the GL texture as a dmabuf if we can, and provide the
texture in that form.
2024-04-07 13:03:13 -04:00
Benjamin Otte
cc98282caa
Merge branch 'shortcutmanager-fix-phase-changes' into 'main'
...
shortcutmanager: Handle propagation phase changes of added controllers
Closes #6246
See merge request GNOME/gtk!7115
2024-04-07 15:45:51 +00:00
Matthias Clasen
85f2e1ccd8
Add gdk_dmabuf_texture_builder_set_dmabuf
...
Private utility api.
2024-04-07 11:12:13 -04:00
Matthias Clasen
91b98bc9e2
Add a private header
...
Just cosmetic reshuffling.
2024-04-07 11:12:13 -04:00
Matthias Clasen
704ee6a9d0
offload: Determine output transforms
...
When we look for the texture to attach to the subsurface, keep
track of transforms we see along the way, and look at their scale
component to determine if the texture needs to be flipped.
We currently don't allow rotations here.
This fixes glarea rendering being upside-down when offloaded.
2024-04-07 11:12:06 -04:00
Matthias Clasen
72e9f30937
subsurface: Add transforms
...
Allow to specify a D₂ transform when attaching a texture to a
subsurface, to handle flipped and rotated content. The Wayland
implementation handles these transforms by setting a buffer
transform on the subsurface.
All callers have been updated to pass GDK_TEXTURE_TRANSFORM_NORMAL.
2024-04-07 11:02:40 -04:00
Matthijs Velsink
aadaf4adf2
shortcutmanager: Track propagation phase of added controllers
...
GtkShortcutManager allows adding controllers to it. For the default
implementation, they get added to one of two models, based on the
propagation phase (either GTK_PHASE_CAPTURE or GTK_PHASE_BUBBLE).
However, when a controller is removed, its presence in the manager gets
checked against the current propagation phase of the controller, which
may have changed from when it was added. This can lead to crashes if the
controller was not disposed properly since it still has a reference in
one of the two models of the GtkShortcutManager.
To fix this, add a callback for `notify::propagation-phase`, which
removes the controller from all possible models and readds it again with
its current phase. This callback is only disconnected permanently when
the controller is manually removed with
`gtk_shortcut_manager_default_remove_controller()`.
Closes #6246
2024-04-07 16:29:08 +02:00
Yaron Shahrabani
d83ad6b505
Update Hebrew translation
...
(cherry picked from commit b19247e4ef
)
2024-04-06 13:19:11 +00:00
Piotr Drąg
b647d1a58c
Update Polish translation
2024-04-06 12:32:39 +02:00
Danial Behzadi
68cff3b108
Update Persian translation
...
(cherry picked from commit 58d48cd3e5
)
2024-04-05 12:40:53 +00:00
Matthias Clasen
84846aace7
Merge branch 'matthiasc/for-main' into 'main'
...
wayland: Work around mutter deficiences
See merge request GNOME/gtk!7112
2024-04-05 09:47:34 +00:00
Athmane MOKRAOUI
7bd93730d1
Update Kabyle translation
2024-04-05 09:16:50 +00:00
Matthias Clasen
c5d05fdc88
wayland: Work around mutter deficiences
...
Add the environment variable NO_POINTER_VIEWPORT to force the use
of buffer scale for pointer surfaces. This is a temporary workaround
for https://gitlab.gnome.org/GNOME/mutter/-/issues/2633 .
2024-04-05 11:13:24 +02:00
Asier Sarasua Garmendia
f6ff2cd1cb
Update Basque translation
...
(cherry picked from commit e54ecf5e32
)
2024-04-05 08:43:42 +00:00
Matthias Clasen
9b0060e84d
Merge branch 'matthiasc/for-main' into 'main'
...
Bump the cairo dep
See merge request GNOME/gtk!7110
2024-04-05 08:00:56 +00:00
Matthias Clasen
8d5633cb88
Drop code handling old cairo
...
We require cairo 1.18 now, so know that we will get subpixel
positioning for text, and have a little less uncertainty in
our font rendering.
2024-04-05 09:00:22 +02:00
Matthias Clasen
f74b1d48b6
Merge branch 'update-gtkswitch-state-docs' into 'main'
...
docs: Clarify state and active properties in GtkSwitch
Closes #6600
See merge request GNOME/gtk!7109
2024-04-05 06:57:16 +00:00
Matthias Clasen
27ebf756fe
Bump the cairo dep
...
Require cairo 1.18, now that we have this stable release.
2024-04-05 08:01:39 +02:00
Dylan McCall
631da2e723
docs: Clarify state and active properties in GtkSwitch
...
Remove duplicate descriptions of the switch's appearance, describe more
particularly how the default signal handler for `GtkSwitch::state-set`
behaves, and add a suggestion that the `state` property should
only be set when communicating a delayed state change.
Fixes #6600
2024-04-04 20:29:07 -07:00
Matthias Clasen
b5531d3d6f
Merge branch 'michaelweghorn/a11y_atspi_getcharacterextents_getoffsetatpoint_fixes' into 'main'
...
a11y atspi: Misc fixes for AT-SPI Text methods GetCharacterExtents, GetRangeExtents and GetOffsetAtPoint
See merge request GNOME/gtk!7104
2024-04-04 22:28:50 +00:00
Martin
5e6bc41fdd
Update Slovenian translation
2024-04-04 22:15:05 +00:00
Matthias Clasen
d0581af2af
Merge branch 'matthiasc/for-main' into 'main'
...
printing: Add context to some strings
See merge request GNOME/gtk!7107
2024-04-04 16:15:30 +00:00
Artur S0
cec746804d
Update Russian translation
2024-04-04 15:36:42 +00:00
Matthias Clasen
ade1aaa8be
printing: Add context to some strings
...
The job priority strings need context to disambiguate them from
similar short strings elsewhere.
2024-04-04 16:56:50 +02:00
Matthias Clasen
345d23898d
Merge branch 'matthiasc/for-main' into 'main'
...
Add context to some translatable strings
Closes #6609
See merge request GNOME/gtk!7105
2024-04-04 14:38:06 +00:00
Matthias Clasen
415717276a
Merge branch 'fix-spinbutton-updates' into 'main'
...
Revert "spinbutton: Tangential refactoring, small fix"
Closes #6599
See merge request GNOME/gtk!7103
2024-04-04 13:27:56 +00:00
Matthias Clasen
cebe640bce
Add context to some translatable strings
...
This was requested by Alexandre Franke.
Fixes : #6609
2024-04-04 15:25:07 +02:00
Emmanuele Bassi
73084b761f
Apply code style fixes from review
2024-04-04 13:05:24 +00:00