gtk4.git
2 years agoUse python3
Matthias Clasen [Wed, 3 May 2023 18:50:14 +0000 (14:50 -0400)]
Use python3

No /usr/bin/python in our CI image :(

2 years agoMake the headless input tests work
Matthias Clasen [Wed, 3 May 2023 14:48:32 +0000 (10:48 -0400)]
Make the headless input tests work

These needed some updates and workarounds.

They are now part of the testsuite and can
be run like this:

    meson test -Cbuild --suite headless

2 years agoDisable a11y for the headless tests
Matthias Clasen [Wed, 3 May 2023 12:49:23 +0000 (08:49 -0400)]
Disable a11y for the headless tests

Otherwise, we go off activating things and end up
failing to launch systemd.

2 years agoAdd a dnd test to the headless tests
Matthias Clasen [Wed, 28 Apr 2021 10:29:41 +0000 (06:29 -0400)]
Add a dnd test to the headless tests

2 years agoUse headless mutter for input tests
Matthias Clasen [Sun, 21 Mar 2021 12:31:25 +0000 (08:31 -0400)]
Use headless mutter for input tests

Add some input tests that are using headless
mutter, and python with our in-tree gir files.

So far, test that we can roundtrip key events,
and move the pointer around.

2 years agoUse headless mutter for monitor tests
Matthias Clasen [Sat, 20 Mar 2021 20:23:36 +0000 (16:23 -0400)]
Use headless mutter for monitor tests

Add some monitor tests that are using headless
mutter, and python with our in-tree gir files.

So far, we test that we get expected signals
when monitors are added and removed.

2 years agoMerge branch 'ci-update-meson' into 'main'
Matthias Clasen [Thu, 4 May 2023 02:57:23 +0000 (02:57 +0000)]
Merge branch 'ci-update-meson' into 'main'

ci: Use newer meson

See merge request GNOME/gtk!5914

2 years agoci: Remove the hack
Matthias Clasen [Thu, 4 May 2023 02:32:00 +0000 (22:32 -0400)]
ci: Remove the hack

2 years agoci: Use newer meson
Matthias Clasen [Thu, 4 May 2023 00:01:20 +0000 (20:01 -0400)]
ci: Use newer meson

2 years agoci: Add meson back to the fedora image
Matthias Clasen [Thu, 4 May 2023 00:18:24 +0000 (20:18 -0400)]
ci: Add meson back to the fedora image

2 years agoci: Add pipewire-gstreamer too
Matthias Clasen [Wed, 3 May 2023 23:26:04 +0000 (19:26 -0400)]
ci: Add pipewire-gstreamer too

2 years agoci: Add pipewire to the image
Matthias Clasen [Wed, 3 May 2023 22:49:45 +0000 (18:49 -0400)]
ci: Add pipewire to the image

And its buddy, wireplumber.

But we don't need gnome-desktop-testing
anymore, now that installed tests are gone.

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Wed, 3 May 2023 19:54:24 +0000 (19:54 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

ci: Stop running failing tests

See merge request GNOME/gtk!5913

2 years agoMerge branch 'stop-running-failing-tests' into 'main'
Matthias Clasen [Wed, 3 May 2023 19:33:35 +0000 (19:33 +0000)]
Merge branch 'stop-running-failing-tests' into 'main'

ci: Stop running failing tests

See merge request GNOME/gtk!5912

2 years agoci: Produce less terminal output
Matthias Clasen [Wed, 3 May 2023 19:32:50 +0000 (15:32 -0400)]
ci: Produce less terminal output

Pass --quiet to meson test.
Less is more, in this case.

2 years agoFix scan-build warning
Matthias Clasen [Tue, 2 May 2023 23:30:30 +0000 (19:30 -0400)]
Fix scan-build warning

2 years agoci: Stop running the unstable test setups
Matthias Clasen [Wed, 3 May 2023 19:10:17 +0000 (15:10 -0400)]
ci: Stop running the unstable test setups

This is just duplicating all our test runs,
for no discernible gain.

2 years agoci: Stop running failing tests
Matthias Clasen [Wed, 3 May 2023 18:41:37 +0000 (14:41 -0400)]
ci: Stop running failing tests

This makes the test output much harder to read,
and is just a waste of time.

2 years agoUpdate Persian translation
Danial Behzadi [Wed, 3 May 2023 09:00:53 +0000 (09:00 +0000)]
Update Persian translation

(cherry picked from commit 954011ef807538b2b38b7881554f10d4788f1425)

2 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Tue, 2 May 2023 18:09:13 +0000 (18:09 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

build: Use generated SPIR-V files

Closes #5798

See merge request GNOME/gtk!5910

2 years agocss: Don't transition to currentColor
Benjamin Otte [Tue, 2 May 2023 17:48:54 +0000 (19:48 +0200)]
css: Don't transition to currentColor

Transition to the color that is in use instead.

Fixes crashes because currentColor is not an RGBA color and
therefor could not be queried later.

Fixes #5798

2 years agovulkan: Compute offscreen texture coords properly
Benjamin Otte [Tue, 2 May 2023 17:44:06 +0000 (19:44 +0200)]
vulkan: Compute offscreen texture coords properly

Most of the time we want to compute them based on the child node we
render to the offscreen, but not always.
For blend and cross-fade nodes, they need to be computed based on the
node's bounds.

Fixes widget-factory page fade animation weirdly resizing the fading
pages.

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Tue, 2 May 2023 17:42:29 +0000 (17:42 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Expand gtk_init docs

Closes #5781

See merge request GNOME/gtk!5909

2 years agoAdd a comment to pango.wrap
Matthias Clasen [Tue, 2 May 2023 11:13:32 +0000 (07:13 -0400)]
Add a comment to pango.wrap

So we remember the next time we try to
switch to stable dependencies.

2 years agoExpand gtk_init docs
Matthias Clasen [Tue, 2 May 2023 17:17:41 +0000 (13:17 -0400)]
Expand gtk_init docs

Make it clear that some aspects of GApplication
functionality happen before startup.

Fixes: #5781
2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Tue, 2 May 2023 13:29:20 +0000 (13:29 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Don't build fribidi docs

See merge request GNOME/gtk!5906

2 years agoMake run-test.sh easier to use locally
Matthias Clasen [Tue, 2 May 2023 10:36:18 +0000 (06:36 -0400)]
Make run-test.sh easier to use locally

Set a default timeout multiplier so we don't
have to rememver obscure environment variables.

2 years agoGo back to fribidi master
Matthias Clasen [Tue, 2 May 2023 10:22:44 +0000 (06:22 -0400)]
Go back to fribidi master

Fribidi 1.0.12 does not work as a subproject :(

2 years agoDon't build fribidi docs
Matthias Clasen [Tue, 2 May 2023 10:22:24 +0000 (06:22 -0400)]
Don't build fribidi docs

There's no need for that. This matches what pango does.

2 years agovulkan: Rebuild SPIR-V files
Benjamin Otte [Tue, 2 May 2023 06:47:10 +0000 (08:47 +0200)]
vulkan: Rebuild SPIR-V files

It's been a while since somebody last compiled them, glslc should be
somewhat newer by now.

2 years agobuild: Use generated SPIR-V files
Benjamin Otte [Tue, 2 May 2023 06:41:43 +0000 (08:41 +0200)]
build: Use generated SPIR-V files

We weren't looking in the build dir for generated files.

Actually make sure that we look in the build dir *first*, otherwise
glib-compile-resources will still use the wrong files.

2 years agoUse pango main as subproject
Matthias Clasen [Tue, 2 May 2023 02:23:34 +0000 (22:23 -0400)]
Use pango main as subproject

This is necessary to get the latest pango docs
built in ci.

2 years agostop using deprecated pango api
Matthias Clasen [Tue, 2 May 2023 03:49:42 +0000 (23:49 -0400)]
stop using deprecated pango api

2 years agoci: Add mutter to the fedora image
Matthias Clasen [Tue, 2 May 2023 01:11:01 +0000 (21:11 -0400)]
ci: Add mutter to the fedora image

This is in preparation for trying to use mutter --headless
in ci.

2 years agoMerge branch 'gsk-flip-tests' into 'main'
Matthias Clasen [Mon, 1 May 2023 21:06:32 +0000 (21:06 +0000)]
Merge branch 'gsk-flip-tests' into 'main'

more gsk tests

See merge request GNOME/gtk!5811

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Mon, 1 May 2023 20:41:13 +0000 (20:41 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Cosmetics: Unset baseline too

See merge request GNOME/gtk!5904

2 years agoSkip some tests with small textures
Matthias Clasen [Mon, 1 May 2023 20:00:24 +0000 (16:00 -0400)]
Skip some tests with small textures

When textures are too large, we will scale them down
to fit the max texture size, which will cause comparisons
to fail.

2 years agoCosmetics: Unset baseline too
Matthias Clasen [Mon, 1 May 2023 20:15:11 +0000 (16:15 -0400)]
Cosmetics: Unset baseline too

We set width and height to 0 when unrealizing
a widget. No reason to let the baseline value
linger.

2 years agoMerge branch 'better-switch-docs' into 'main'
Matthias Clasen [Mon, 1 May 2023 20:03:44 +0000 (20:03 +0000)]
Merge branch 'better-switch-docs' into 'main'

switch: Expand the docs

See merge request GNOME/gtk!5903

2 years agoswitch: Expand the docs
Matthias Clasen [Mon, 1 May 2023 19:15:25 +0000 (15:15 -0400)]
switch: Expand the docs

Add more text and explanation around active vs state,
since people seem easily confused by it.

2 years agogsk: Fix rendering big textures with offsets
Matthias Clasen [Mon, 1 May 2023 18:46:30 +0000 (14:46 -0400)]
gsk: Fix rendering big textures with offsets

When slicing the texture, the GL renderer was
forgetting to apply the viewport origin. This
shows up when rendering things with negative
scales, leading to negative origins.

2 years agoImprove test coverage
Matthias Clasen [Mon, 1 May 2023 17:58:00 +0000 (13:58 -0400)]
Improve test coverage

Check that our two rounded rect intersection functions agree.

2 years agogsk: Give up on one test
Matthias Clasen [Mon, 1 May 2023 17:33:26 +0000 (13:33 -0400)]
gsk: Give up on one test

The rounded-clip-in-clip-3d test fails in GL when
flipped. Given that it was already excluded from cairo,
and also fails cairo when flipped, give up on it for now.

2 years agogsk: Extract scales properly from 2D transforms
Matthias Clasen [Mon, 1 May 2023 17:28:27 +0000 (13:28 -0400)]
gsk: Extract scales properly from 2D transforms

We have the code to do it properly.

2 years agoImprove rounded rect intersection
Matthias Clasen [Mon, 1 May 2023 13:52:46 +0000 (09:52 -0400)]
Improve rounded rect intersection

Move the rounded rect/rect intersection code to
gskroundedrect.c, make it more precise, and add
tests for it.

Update the callers in the GL renderer.

2 years agogsk: Fix mask transform handling
Matthias Clasen [Mon, 1 May 2023 00:40:00 +0000 (20:40 -0400)]
gsk: Fix mask transform handling

We must reset the modelview transform when
offscreen, or else we end up applying
it twice.

2 years agoAdd a test for rotated blend nodes
Matthias Clasen [Mon, 1 May 2023 00:28:12 +0000 (20:28 -0400)]
Add a test for rotated blend nodes

2 years agogsk: Fix blend transform handling
Matthias Clasen [Mon, 1 May 2023 00:27:38 +0000 (20:27 -0400)]
gsk: Fix blend transform handling

We must reset the modelview transform when
rendering offscreen, or else we end up applying
it twice.

2 years agoAdd a test for rotated cross-fade nodes
Matthias Clasen [Mon, 1 May 2023 00:20:12 +0000 (20:20 -0400)]
Add a test for rotated cross-fade nodes

This one checks that we don't apply the modelview
transform twice with cross-fades.

2 years agogsk: Fix cross-fade transform handling
Matthias Clasen [Mon, 1 May 2023 00:21:47 +0000 (20:21 -0400)]
gsk: Fix cross-fade transform handling

We must reset the modelview transform when
rendering offscreen, or else we end up applying
it twice.

2 years agogsk: More fixes
Matthias Clasen [Mon, 1 May 2023 17:39:23 +0000 (13:39 -0400)]
gsk: More fixes

Work towards handling negative scales and
denormalized rects everywhere.

2 years agoAdd another test
Matthias Clasen [Sun, 30 Apr 2023 20:16:32 +0000 (16:16 -0400)]
Add another test

2 years agogsk: Transform rounded rects better
Matthias Clasen [Sun, 30 Apr 2023 15:19:47 +0000 (11:19 -0400)]
gsk: Transform rounded rects better

2 years agoAdd another gsk test
Matthias Clasen [Sat, 15 Apr 2023 20:55:24 +0000 (22:55 +0200)]
Add another gsk test

2 years agogsk: Normalize rects in GLSL
Matthias Clasen [Sat, 15 Apr 2023 20:50:34 +0000 (22:50 +0200)]
gsk: Normalize rects in GLSL

Our coverage computation only works for well-behaved
rects and rounded rects. But our modelview transform
might flip x or y around, causing things to fail.

Add functions to normalize rects and rounded rects,
and use it whenever we transform a rounded rect in GLSL.

2 years agotestsuite: Fix gsk test
Matthias Clasen [Fri, 14 Apr 2023 07:22:01 +0000 (09:22 +0200)]
testsuite: Fix gsk test

The repeated tests were not careful enough to produce
the correct reference image to match what the repeat
node does.

With these changes, all cairo tests pass.

2 years agotestsuite: Add more gsk tests
Matthias Clasen [Tue, 11 Apr 2023 08:58:26 +0000 (10:58 +0200)]
testsuite: Add more gsk tests

Add separate suites for running the gsk compare-render
tests with the --flip, --rotate or --repeat options.
A bunch of these fail currently, and need diagnosis.

2 years agoAdd more gsk tests
Matthias Clasen [Mon, 10 Apr 2023 07:40:31 +0000 (09:40 +0200)]
Add more gsk tests

Add options to the gsk compare-render test for
modifying the node (and do a matching change to
the reference image).

flip: negative scale flipping things horizontally
rotate: 90 degree rotation
repeat: 2x2 grid

2 years agoAdd another transform test
Matthias Clasen [Sun, 30 Apr 2023 20:22:39 +0000 (16:22 -0400)]
Add another transform test

Test that transforming bounds with negative scales
works as expected.

2 years agoMerge branch 'displaymanager-warning-fix' into 'main'
Matthias Clasen [Mon, 1 May 2023 16:56:40 +0000 (16:56 +0000)]
Merge branch 'displaymanager-warning-fix' into 'main'

Avoid a bad warning

See merge request GNOME/gtk!5901

2 years agoAvoid a bad warning
Matthias Clasen [Mon, 1 May 2023 14:35:24 +0000 (10:35 -0400)]
Avoid a bad warning

This isn't what we intended, and it breaks CI for
various projects.

2 years agoMerge branch 'alatiera/vulkan-headers-fix' into 'main'
Georges Basile Stavracas Neto [Mon, 1 May 2023 14:00:43 +0000 (14:00 +0000)]
Merge branch 'alatiera/vulkan-headers-fix' into 'main'

vulkan: Correct error enum version guards

See merge request GNOME/gtk!5900

2 years agovulkan: Correct error enum version guards
Jordan Petridis [Mon, 1 May 2023 06:38:33 +0000 (09:38 +0300)]
vulkan: Correct error enum version guards

Vulkan 218 introduced these errors by they were marked as
the beta till version 238.

https://github.com/KhronosGroup/Vulkan-Headers/commit/00671c64ba5c488ade22ad572a0ef81d5e64c803#diff-e222ae95c2b0d5082b94d6086fb1c24da18ee31384c1a39840df3b9152023ee6

Followup to f9b2d3104a681b3e2bb2c32c98e1d992fdd29034

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sun, 30 Apr 2023 22:39:57 +0000 (22:39 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

docs: Migration guide updates

See merge request GNOME/gtk!5899

2 years agoMerge branch 'emojichooser-variation-fix' into 'main'
Matthias Clasen [Sun, 30 Apr 2023 22:29:11 +0000 (22:29 +0000)]
Merge branch 'emojichooser-variation-fix' into 'main'

emojichooser: Avoid extraneous variation selectors

See merge request GNOME/gtk!5898

2 years agodocs: Migration guide updates
Matthias Clasen [Sat, 29 Apr 2023 20:15:02 +0000 (16:15 -0400)]
docs: Migration guide updates

Mention various widget size apis going away.

2 years agogsk: Plug a few memory leaks
Matthias Clasen [Sun, 30 Apr 2023 22:21:23 +0000 (18:21 -0400)]
gsk: Plug a few memory leaks

2 years agoemojichooser: Avoid extraneous variation selectors
Matthias Clasen [Sun, 30 Apr 2023 15:55:17 +0000 (11:55 -0400)]
emojichooser: Avoid extraneous variation selectors

Only add a variation selector if there isn't one already.

2 years agomigrating-3to4: Fix unescaped ptr * used as italic
Daniel Boles [Sun, 30 Apr 2023 15:55:31 +0000 (16:55 +0100)]
migrating-3to4: Fix unescaped ptr * used as italic

2 years agogtk-demo/listbox: Fix 0 space between nick & date,
Daniel Boles [Sun, 30 Apr 2023 15:36:10 +0000 (16:36 +0100)]
gtk-demo/listbox: Fix 0 space between nick & date,

by restoring the right-alignment that gtk-3-24 has here, but we had lost
– I guess because we dropped the default child expand and pack-end props

2 years agoInscription|InfoBar: Fix small cosmetic issue@docs
Daniel Boles [Sun, 30 Apr 2023 15:05:11 +0000 (16:05 +0100)]
Inscription|InfoBar: Fix small cosmetic issue@docs

2 years agoMerge branch 'dboles/expander-css-nodes-doc' into 'main'
Daniel Boles [Sun, 30 Apr 2023 11:37:55 +0000 (11:37 +0000)]
Merge branch 'dboles/expander-css-nodes-doc' into 'main'

Expander: Clarify/format “CSS nodes” documentation

See merge request GNOME/gtk!5896

2 years agoExpander: Clarify/format CSS nodes documentation
Daniel Boles [Sat, 29 Apr 2023 21:38:21 +0000 (22:38 +0100)]
Expander: Clarify/format CSS nodes documentation

Use backticks to highlight the node names, mention the box, and clarify
that the arrow referred to in the last sentence is the `expander` node.

2 years agoMerge branch 'deprecated-get-allocated-width' into 'main'
Matthias Clasen [Sat, 29 Apr 2023 18:55:45 +0000 (18:55 +0000)]
Merge branch 'deprecated-get-allocated-width' into 'main'

Deprecated get allocated width

See merge request GNOME/gtk!5894

2 years agoMerge branch 'box-baseline-child' into 'main'
Matthias Clasen [Sat, 29 Apr 2023 18:30:59 +0000 (18:30 +0000)]
Merge branch 'box-baseline-child' into 'main'

boxlayout: Add a baseline child property

See merge request GNOME/gtk!5891

2 years agoDeprecate gtk_widget_get_allocated_width
Matthias Clasen [Sat, 29 Apr 2023 18:27:59 +0000 (14:27 -0400)]
Deprecate gtk_widget_get_allocated_width

2 years agotests: Stop using gtk_widget_get_allocated_width
Matthias Clasen [Sat, 29 Apr 2023 18:27:39 +0000 (14:27 -0400)]
tests: Stop using gtk_widget_get_allocated_width

2 years agogtk4-demo: Stop using gtk_widget_get_allocated_size
Matthias Clasen [Sat, 29 Apr 2023 18:10:53 +0000 (14:10 -0400)]
gtk4-demo: Stop using gtk_widget_get_allocated_size

2 years agopopover: Stop using gtk_widget_get_allocated_width
Matthias Clasen [Sat, 29 Apr 2023 18:00:30 +0000 (14:00 -0400)]
popover: Stop using gtk_widget_get_allocated_width

2 years agoplacesview: Stop using gtk_widget_get_allocated_width
Matthias Clasen [Sat, 29 Apr 2023 17:59:15 +0000 (13:59 -0400)]
placesview: Stop using gtk_widget_get_allocated_width

2 years agoplacessidebar: Stop using gtk_widget_get_allocated_width
Matthias Clasen [Sat, 29 Apr 2023 17:58:15 +0000 (13:58 -0400)]
placessidebar: Stop using gtk_widget_get_allocated_width

2 years agocolumnview: Stop using gtk_widget_get_allocated_width
Matthias Clasen [Sat, 29 Apr 2023 17:54:14 +0000 (13:54 -0400)]
columnview: Stop using gtk_widget_get_allocated_width

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sat, 29 Apr 2023 18:29:14 +0000 (18:29 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

widget: Cosmetics

See merge request GNOME/gtk!5892

2 years agoMerge branch 'wip/carlosg/x11-artifacts' into 'main'
Benjamin Otte [Sat, 29 Apr 2023 18:11:21 +0000 (18:11 +0000)]
Merge branch 'wip/carlosg/x11-artifacts' into 'main'

gdk/x11: Invalidate whole surface after size change

See merge request GNOME/gtk!5857

2 years agodocs: Mention baselines
Matthias Clasen [Sat, 29 Apr 2023 17:46:47 +0000 (13:46 -0400)]
docs: Mention baselines

Add a paragraph about baselines to the coordinates overview.

2 years agowidget: Cosmetics
Matthias Clasen [Sat, 29 Apr 2023 17:35:24 +0000 (13:35 -0400)]
widget: Cosmetics

Rename allocated_size_baseline to allocated_baseline,
to match better with the other allocated_ fields.

2 years agospinbutton: Use GtkBoxLayout:baseline-child
Matthias Clasen [Sat, 29 Apr 2023 16:00:15 +0000 (12:00 -0400)]
spinbutton: Use GtkBoxLayout:baseline-child

This makes it so that vertical spin buttons are
properly aligned to the baseline.

2 years agoRevert "spinbutton: Use a grid layout"
Matthias Clasen [Sat, 29 Apr 2023 15:55:27 +0000 (11:55 -0400)]
Revert "spinbutton: Use a grid layout"

This reverts commit d648a7721e826717fb2c675d8202ab34e879d521.

2 years agoboxlayout: Add a baseline child property
Matthias Clasen [Thu, 27 Apr 2023 12:57:09 +0000 (14:57 +0200)]
boxlayout: Add a baseline child property

In horizontal layout, we line up the baselines of all children to find
how much space we need above and below the box baseline.

In vertical layout, we need to pick one child to inherit the baseline
from, which is what the new GtkBoxLayout:baseline-child property is
about. It is the equivalent of GtkGridLayout:baseline-row.

2 years agoEventController: Fix type "even propagation"→event
Daniel Boles [Sat, 29 Apr 2023 17:12:30 +0000 (18:12 +0100)]
EventController: Fix type "even propagation"→event

2 years agoRemove more debug spew
Matthias Clasen [Sat, 29 Apr 2023 15:45:39 +0000 (11:45 -0400)]
Remove more debug spew

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sat, 29 Apr 2023 14:16:42 +0000 (14:16 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

entry: Ignore the baseline when centering

See merge request GNOME/gtk!5889

2 years agowidget: Don't set baselines when unused
Matthias Clasen [Sat, 29 Apr 2023 13:47:59 +0000 (09:47 -0400)]
widget: Don't set baselines when unused

When we are not doing baseline alignment, don't pass
a baseline to the allocated widget. This helps because
a number of widgets (GtkLabel, GtkEntry, etc) always
position their text on the given baseline.

2 years agoentry: Ignore the baseline when centering
Matthias Clasen [Sat, 29 Apr 2023 13:20:07 +0000 (09:20 -0400)]
entry: Ignore the baseline when centering

GtkEntry was always placing its text on the baseline,
even when the valign said something else.

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sat, 29 Apr 2023 12:27:23 +0000 (12:27 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

theme: Reinstate switch labels in hc

See merge request GNOME/gtk!5888

2 years agotestbaseline2: Don't set height-requests
Matthias Clasen [Sat, 29 Apr 2023 12:00:07 +0000 (08:00 -0400)]
testbaseline2: Don't set height-requests

Widget with height requests have their baselines
ignored. Oops.

2 years agotheme: Reinstate switch labels in hc
Matthias Clasen [Sat, 29 Apr 2023 11:58:42 +0000 (07:58 -0400)]
theme: Reinstate switch labels in hc

Since we show them in GNOME shell, show them here too.

The comment that says "only show these in the a11y
theme" was still there, but we were always hiding them.

2 years agogdk/x11: Invalidate whole surface after size change
Carlos Garnacho [Fri, 21 Apr 2023 08:58:19 +0000 (10:58 +0200)]
gdk/x11: Invalidate whole surface after size change

The Expose events following a ConfigureNotify may arrive at
a time that we did not resize the surface yet, making these
expose events a no-op. Even though gsk/gtk take care of the
window content itself, this might lead to unrendered portions
of the window shadow.

This may be seen with GSK_RENDERER=cairo and GDK_BACKEND=x11,
attempting to tile a window (e.g. gtk4-demo) left or right.
The window will show black rectangles or other artifacts in
the window shadow areas that correspond to the newly painted
portions (as the window needs to expand vertically).

In order to fix this with a similar behavior to Wayland,
consider ourselves the whole surface invalidated after resize,
in order to ensure everything is painted from scratch.

2 years agoUpdate Friulian translation
Fabio Tomat [Sat, 29 Apr 2023 08:57:53 +0000 (08:57 +0000)]
Update Friulian translation

2 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Sat, 29 Apr 2023 03:43:45 +0000 (03:43 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

wayland: Use wl_surface_damage_buffer() in Cairo

See merge request GNOME/gtk!5886