Matthias Clasen
60921db76f
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Update some misc info rows
See merge request GNOME/gtk!5768
2023-04-01 18:36:39 +00:00
Matthias Clasen
f7600a62e4
Merge branch 'wip/otte/fractional-cairo' into 'main'
...
wayland: Enable fractional scaling with the Cairo renderer
See merge request GNOME/gtk!5767
2023-04-01 18:35:33 +00:00
Georges Basile Stavracas Neto
70e6bcce16
Merge branch 'gbsneto/mildly-mid-vulkan-fixes' into 'main'
...
Vulkan transform / scale fixes
See merge request GNOME/gtk!5757
2023-04-01 18:23:12 +00:00
Matthias Clasen
a4dc0a74fd
inspector: Update some misc info rows
2023-04-01 14:21:41 -04:00
Benjamin Otte
6d4d9af14e
wayland: Use fractional scaling with the Cairo renderer
...
Cairo can do that, so just enable it:
* Create surfaces with the correct fractionally scaled size.
* Set the Cairo surface's device scale to that number.
2023-04-01 20:05:06 +02:00
Benjamin Otte
84b235aac1
wayland: Allow creating fractional Cairo surfaces
...
We don't do that yet, because the buffer scale code can't deal with it,
but we can do it now.
2023-04-01 20:05:05 +02:00
Benjamin Otte
ea82f50d13
build: Bump wayland-protocols requirement
...
The new fractional-scale support requires v1.31
2023-04-01 20:05:05 +02:00
Benjamin Otte
1a71e82fc5
wayland: Use wp_viewport to set buffer scale
...
Instead of setting the buffer scale via the buffer-scale command, set it
via the viewport.
This technically allows setting fractional scales, but we're not doing
that.
2023-04-01 20:05:01 +02:00
Georges Basile Stavracas Neto
f3b8bd8a98
gsk/gl/renderjob: Decompose matrix for 3D transforms
...
While this can be more expensive, it's also correct.
2023-04-01 14:47:29 -03:00
Georges Basile Stavracas Neto
ee1730dd49
gsk/vulkan/renderpass: Update scales from transform node
...
Retrieve the scale from the transform node, and store it as long
as the transform node is being visited. This applies the proper
scale to text nodes.
2023-04-01 14:47:29 -03:00
Georges Basile Stavracas Neto
e0aaf9bc83
gsk/vulkan/renderpass: Refactor scale
...
Instead of tracking a single scale, track x and y scales separately.
Factor out gsk_vulkan_render_pass_new() into a private function that
receives both scales, and pass 'scale_factor' for both.
2023-04-01 14:46:56 -03:00
Matthias Clasen
63318dcd66
NEWS: Updates
2023-04-01 12:38:38 -04:00
Benjamin Otte
8dd5d649b8
wayland: Use GdkFractionalScale for surface scale
...
We still always round it to integers when we read it, but we store it as a fraction.
So we could now use it for fractional scaling.
2023-04-01 18:23:38 +02:00
Benjamin Otte
40ac6f22a3
wayland: Introduce GdkFractionalScale type
...
We want to use it later for various things, this just adds the
infrastructure we will need.
2023-04-01 18:23:38 +02:00
Matthias Clasen
1262477e17
Merge branch 'always_expose_showing' into 'main'
...
a11y: Set ATSPI_STATE_SHOWING for all widgets, not only for windows
Closes #5194
See merge request GNOME/gtk!5738
2023-04-01 14:41:42 +00:00
Matthias Clasen
afe3f0ef0c
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Improve display of paths
See merge request GNOME/gtk!5766
2023-04-01 14:14:31 +00:00
Matthias Clasen
258fb091dc
inspector: Improve display of paths
...
The values in the path section are long and generally
ellipsized. It does not make sense to reserve extra
space that the labels don't need.
2023-04-01 09:52:31 -04:00
Matthias Clasen
7aca807b15
Merge branch 'wayland-details' into 'main'
...
inspector: Show Wayland protocols
See merge request GNOME/gtk!5765
2023-04-01 13:51:40 +00:00
Matthias Clasen
ffdbb9077c
wayland: Some debug spew tweaks
2023-04-01 09:31:12 -04:00
Matthias Clasen
23268e84b3
inspector: Show Wayland protocols
...
This could be useful for somebody.
2023-04-01 09:31:12 -04:00
Matthias Clasen
16c1acc539
Merge branch 'bilelmoussaoui-main-patch-24659' into 'main'
...
docs: Improve GtkLabel rendering
See merge request GNOME/gtk!5764
2023-04-01 12:48:19 +00:00
Nathan Follens
3393813949
Update Dutch translation
2023-04-01 12:29:11 +00:00
Bilal Elmoussaoui
e95c50ca4e
docs: Improve GtkLabel rendering
...
By adding some missing links & avoid the browser
from rendering the entities as their equivalent symbols
2023-04-01 12:06:11 +00:00
Benjamin Otte
a3f216be00
Merge branch 'wip/otte/fractional-scale' into 'main'
...
wayland: Add support for the fractional scale protocol
See merge request GNOME/gtk!5763
2023-04-01 11:39:32 +00:00
Benjamin Otte
54e8bd898a
wayland: Add support for the fractional scale protocol
...
April fools!
No, really.
The fractional scale protocol is just a way to track the surface scale,
but not a way to draw fractional content.
This commit uses it for that, so tht we don't rely on tracking outputs.
This also allows magnifiers etc to send us a larger (integer) scale if
they would like that, that is not represented by the outputs.
2023-04-01 12:57:03 +02:00
Benjamin Otte
2fb11765c7
Merge branch 'wip/otte/wayland-versions' into 'main'
...
wayland: Use proper get_version() functions
See merge request GNOME/gtk!5761
2023-04-01 00:52:11 +00:00
Benjamin Otte
b4492a97bf
wayland: Use wl_seat_get_version()
2023-04-01 02:22:21 +02:00
Benjamin Otte
6f93f52b56
wayland: Use zwp_pointer_gestures_v1_get_version()
2023-04-01 02:22:21 +02:00
Benjamin Otte
68b8c5cd99
wayland: Use gtk_shell1_get_version()
...
... or correct gtk_surface1_get_version() alternative.
2023-04-01 02:22:21 +02:00
Benjamin Otte
9d99259cbd
wayland: Use wl_data_device_manager_get_version()
2023-04-01 02:22:21 +02:00
Benjamin Otte
55b5c847f7
wayland: Use zxdg_output_manager_v1_get_version()
2023-04-01 02:22:21 +02:00
Benjamin Otte
3d3d22e844
wayland: Remove unused variable
...
Also, Wayland has get_version() functions, so if we ever need it, we can
use that.
2023-04-01 02:22:21 +02:00
Benjamin Otte
ae2c28af89
wayland: Check correct interface
...
buffer scale is a surface property, so check the version of the surface
interface, not the compositor one.
2023-04-01 02:22:21 +02:00
Benjamin Otte
c7499a33fd
wayland: Use wl_compositor_get_version()
...
Wayland has functions to check versions, so use those.
2023-04-01 02:22:21 +02:00
Benjamin Otte
c97b489316
wayland: Use proper macro
...
Wayland has macros to check required versions. Use those instead of
custom ones.
2023-04-01 02:22:21 +02:00
Matthias Clasen
ce86ec5599
CODING-STYLE: Updates
...
We switched to using #pragma once in headers,
document that.
2023-03-31 20:17:12 -04:00
Matthias Clasen
27230ccb01
Merge branch 'pragma-once' into 'main'
...
Convert headers to #pragma once
See merge request GNOME/gtk!5759
2023-03-31 23:52:01 +00:00
Matthias Clasen
a1c5a806b3
Convert headers to #pragma once
...
The conversion was done by guard2one.
2023-03-31 15:11:10 -04:00
Georges Basile Stavracas Neto
b1a8c0e686
gsk/vulkan/renderpass: Factor out node implementations
...
This is mostly a cosmetic change, and the goal is twofold:
1. Make it easier to spot unimplemented render node types; and
2. Prepare for a small rework
The implementation for each node now lives in specific functions,
like the GL renderer; unlike the GL renderer, however, we use a
node type vtable to map GskRenderNodeType → implementation. Render
node without an implementation map to NULL, and use the fallback
implementation. Render nodes that fail any check and return FALSE
also use fallback implementation.
2023-03-31 14:00:33 -03:00
Benjamin Otte
515f39f161
Merge branch 'wip/otte/for-main' into 'main'
...
various fixes
See merge request GNOME/gtk!5756
2023-03-31 15:58:03 +00:00
Benjamin Otte
dbff49b5a7
listbase: Clear any newly set adjustments
...
The scrolling code assumes the adjustment values are up to date or
it crashes and before we've run size_allocate() we haven't update them.
Fixes a crash in the gtk-demo scrollinfo that would set the adjustments
with random values (via ScrolledWindow.set_child()) and then scroll in a
tick callback right before the (first) size_allocate().
2023-03-31 17:35:48 +02:00
Benjamin Otte
6f4175345f
widget: Shortcut widget not repositioning
...
If a widget doesn't move positions during gtk_widget_reposition(),
detect it early.
This is especially beneficial in the inspector.
2023-03-31 17:35:48 +02:00
Matthias Clasen
bd29bed785
Merge branch 'gbsneto/easy-vulkan-fixes' into 'main'
...
Easy Vulkan cleanups and fixes
See merge request GNOME/gtk!5753
2023-03-31 13:25:30 +00:00
Alexander Shopov
cf2c955b12
Update Bulgarian translation
...
(cherry picked from commit 3458ebf8c9
)
2023-03-31 10:04:32 +00:00
Matthias Clasen
ad8684431e
Merge branch 'more-property-notification' into 'main'
...
filedialog: Make filters nullable
See merge request GNOME/gtk!5755
2023-03-31 01:54:52 +00:00
Matthias Clasen
4e17900b9a
testsuite: Check more property notification
...
Handle more value types.
2023-03-30 21:39:55 -04:00
Matthias Clasen
fdce10fb96
Make adjustment setters behave
2023-03-30 21:39:55 -04:00
Matthias Clasen
3b96b053ad
models: Fix up property notifications
...
We were emitting redundant notifications
for the ::model property.
2023-03-30 20:18:19 -04:00
Matthias Clasen
82b188c8fb
filedialog: Make filters nullable
...
It should be possible to reset a property
to its default value.
2023-03-30 20:17:28 -04:00
Matthias Clasen
ef45004d14
Merge branch 'more-notify-tests' into 'main'
...
testsuite: Clean up some exclusions
See merge request GNOME/gtk!5752
2023-03-30 23:34:48 +00:00