gtk4.git
2 years agoMake fast forward from 4.10.5+ds-3
Simon McVittie [Tue, 22 Aug 2023 11:11:51 +0000 (12:11 +0100)]
Make fast forward from 4.10.5+ds-3

[dgit --quilt=unapplied]

2 years agotests: Allow longer for a dialog to open
Simon McVittie [Tue, 22 Aug 2023 11:05:31 +0000 (12:05 +0100)]
tests: Allow longer for a dialog to open

This hopefully makes the test pass more reliably, especially on riscv64.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/6050
Bug-Debian: https://bugs.debian.org/1049434
Forwarded: no, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-Allow-longer-for-a-dialog-to-open.patch

2 years agogstreamer-player: Use GtkName Prefix to avoid issues if actual library is included
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:08:30 +0000 (20:08 +0100)]
gstreamer-player: Use GtkName Prefix to avoid issues if actual library is included

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-Use-GtkName-Prefix-to-avoid-issues-if-ac.patch

2 years agomedia: Use gstplayer from meson subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:01:40 +0000 (20:01 +0100)]
media: Use gstplayer from meson subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name media-Use-gstplayer-from-meson-subproject.patch

2 years agogstreamer-player-1.0: Do not install it if it's a subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:59:43 +0000 (19:59 +0100)]
gstreamer-player-1.0: Do not install it if it's a subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-1.0-Do-not-install-it-if-it-s-a-subproje.patch

2 years agosubprojects: Add gst-player-1.0 as subporject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subporject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name subprojects-Add-gst-player-1.0-as-subporject.patch

2 years agoDisable clipboard test
Simon McVittie [Fri, 3 Sep 2021 14:08:08 +0000 (15:08 +0100)]
Disable clipboard test

This regularly times out on buildds, but I can't reproduce the hang
locally.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4229
Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-clipboard-test.patch

2 years agoDisable inscription-markup.ui reftest
Simon McVittie [Fri, 12 Aug 2022 09:44:17 +0000 (10:44 +0100)]
Disable inscription-markup.ui reftest

It's rendered 1px to the left of where it should be, which is not a
serious problem for practical use of GTK, but is a test failure.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5099
Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-inscription-markup.ui-reftest.patch

2 years agoreftests: Allow minor differences to be tolerated
Simon McVittie [Sat, 13 Feb 2021 16:19:10 +0000 (16:19 +0000)]
reftests: Allow minor differences to be tolerated

Based on an earlier patch by Michael Biebl, as used in Debian's GTK 3
packaging, with additional inspiration from librsvg's reftests.

Each .ui or .node reftest can have an accompanying .keyfile file
like this:

    [reftest]
    tolerated-diff-level=20
    tolerated-diff-pixels=1000

If the image differs, but the number of pixels that differ is no more
than tolerated-diff-pixels and the differences are no more than
tolerated-diff-level, then we treat it as a success with warnings, save
the .diff.png for analysis, and use g_test_incomplete() to record the
test-case as "TODO".

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftests-Allow-minor-differences-to-be-tolerated.patch

2 years agoreftest_compare_surfaces: Report how much the images differ
Simon McVittie [Sat, 13 Feb 2021 18:26:24 +0000 (18:26 +0000)]
reftest_compare_surfaces: Report how much the images differ

In unattended/non-interactive/autobuilder environments where the images
are not trivially accessible, this provides a way to distinguish between
totally different rendering and more subtle issues.

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

2 years agoRevert "build: Drop the install-tests option"
Jeremy Bicha [Thu, 12 Jan 2023 13:47:54 +0000 (08:47 -0500)]
Revert "build: Drop the install-tests option"

Debian and Ubuntu uses these installed tests as part of their
autopkgtest system

This reverts commit 3121f88265ac61733e257f5335473d6f139f158c.

Gbp-Pq: Name Revert-build-Drop-the-install-tests-option.patch

2 years agoRevert "tests: Stop copying the tool tests"
Jeremy Bicha [Mon, 5 Jun 2023 17:49:20 +0000 (13:49 -0400)]
Revert "tests: Stop copying the tool tests"

This reverts commit bb3a6214cbeaa3211be007192e536bd473323836.

This is actually used by the installed tests
which we also had to revert dropping (in a separate patch)

Gbp-Pq: Name Revert-tests-Stop-copying-the-tool-tests.patch

2 years agoRelease to unstable
Simon McVittie [Tue, 22 Aug 2023 11:13:24 +0000 (12:13 +0100)]
Release to unstable

2 years agoRevert "Temporarily disable sysprof integration to get the package rebuilt"
Jeremy Bícha [Tue, 8 Aug 2023 13:38:52 +0000 (09:38 -0400)]
Revert "Temporarily disable sysprof integration to get the package rebuilt"

This reverts commit 02bd657dfab872c322ac13e18e3b2cef2b24ca05.

2 years agod/control.in, d/gbp.conf: Use debian/trixie and upstream/4.10.x branches
Simon McVittie [Tue, 22 Aug 2023 11:09:14 +0000 (12:09 +0100)]
d/control.in, d/gbp.conf: Use debian/trixie and upstream/4.10.x branches

2 years agoAdd patch to work around a test failure on riscv64
Simon McVittie [Tue, 22 Aug 2023 11:07:38 +0000 (12:07 +0100)]
Add patch to work around a test failure on riscv64

Other architectures are occasionally affected by this.

Thanks: Aurelien Jarno
Closes: #1049434
2 years agoRelease to unstable
Simon McVittie [Mon, 7 Aug 2023 08:35:50 +0000 (09:35 +0100)]
Release to unstable

2 years agoMake fast forward from 4.10.5+ds-2
Simon McVittie [Mon, 7 Aug 2023 08:35:32 +0000 (09:35 +0100)]
Make fast forward from 4.10.5+ds-2

[dgit --quilt=unapplied]

2 years agogstreamer-player: Use GtkName Prefix to avoid issues if actual library is included
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:08:30 +0000 (20:08 +0100)]
gstreamer-player: Use GtkName Prefix to avoid issues if actual library is included

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-Use-GtkName-Prefix-to-avoid-issues-if-ac.patch

2 years agomedia: Use gstplayer from meson subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:01:40 +0000 (20:01 +0100)]
media: Use gstplayer from meson subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name media-Use-gstplayer-from-meson-subproject.patch

2 years agogstreamer-player-1.0: Do not install it if it's a subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:59:43 +0000 (19:59 +0100)]
gstreamer-player-1.0: Do not install it if it's a subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-1.0-Do-not-install-it-if-it-s-a-subproje.patch

2 years agosubprojects: Add gst-player-1.0 as subporject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subporject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name subprojects-Add-gst-player-1.0-as-subporject.patch

2 years agoDisable clipboard test
Simon McVittie [Fri, 3 Sep 2021 14:08:08 +0000 (15:08 +0100)]
Disable clipboard test

This regularly times out on buildds, but I can't reproduce the hang
locally.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4229
Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-clipboard-test.patch

2 years agoDisable inscription-markup.ui reftest
Simon McVittie [Fri, 12 Aug 2022 09:44:17 +0000 (10:44 +0100)]
Disable inscription-markup.ui reftest

It's rendered 1px to the left of where it should be, which is not a
serious problem for practical use of GTK, but is a test failure.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5099
Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-inscription-markup.ui-reftest.patch

2 years agoreftests: Allow minor differences to be tolerated
Simon McVittie [Sat, 13 Feb 2021 16:19:10 +0000 (16:19 +0000)]
reftests: Allow minor differences to be tolerated

Based on an earlier patch by Michael Biebl, as used in Debian's GTK 3
packaging, with additional inspiration from librsvg's reftests.

Each .ui or .node reftest can have an accompanying .keyfile file
like this:

    [reftest]
    tolerated-diff-level=20
    tolerated-diff-pixels=1000

If the image differs, but the number of pixels that differ is no more
than tolerated-diff-pixels and the differences are no more than
tolerated-diff-level, then we treat it as a success with warnings, save
the .diff.png for analysis, and use g_test_incomplete() to record the
test-case as "TODO".

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftests-Allow-minor-differences-to-be-tolerated.patch

2 years agoreftest_compare_surfaces: Report how much the images differ
Simon McVittie [Sat, 13 Feb 2021 18:26:24 +0000 (18:26 +0000)]
reftest_compare_surfaces: Report how much the images differ

In unattended/non-interactive/autobuilder environments where the images
are not trivially accessible, this provides a way to distinguish between
totally different rendering and more subtle issues.

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

2 years agoRevert "build: Drop the install-tests option"
Jeremy Bicha [Thu, 12 Jan 2023 13:47:54 +0000 (08:47 -0500)]
Revert "build: Drop the install-tests option"

Debian and Ubuntu uses these installed tests as part of their
autopkgtest system

This reverts commit 3121f88265ac61733e257f5335473d6f139f158c.

Gbp-Pq: Name Revert-build-Drop-the-install-tests-option.patch

2 years agoRevert "tests: Stop copying the tool tests"
Jeremy Bicha [Mon, 5 Jun 2023 17:49:20 +0000 (13:49 -0400)]
Revert "tests: Stop copying the tool tests"

This reverts commit bb3a6214cbeaa3211be007192e536bd473323836.

This is actually used by the installed tests
which we also had to revert dropping (in a separate patch)

Gbp-Pq: Name Revert-tests-Stop-copying-the-tool-tests.patch

2 years agoTemporarily disable sysprof integration to get the package rebuilt
Simon McVittie [Mon, 7 Aug 2023 08:35:27 +0000 (09:35 +0100)]
Temporarily disable sysprof integration to get the package rebuilt

2 years agoRelease to unstable
Simon McVittie [Sun, 6 Aug 2023 12:04:40 +0000 (13:04 +0100)]
Release to unstable

2 years agoDeclare fast forward from 4.10.5+ds-1
Simon McVittie [Sun, 6 Aug 2023 12:03:36 +0000 (13:03 +0100)]
Declare fast forward from 4.10.5+ds-1

[dgit --quilt=unapplied --overwrite]

2 years agogstreamer-player: Use GtkName Prefix to avoid issues if actual library is included
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:08:30 +0000 (20:08 +0100)]
gstreamer-player: Use GtkName Prefix to avoid issues if actual library is included

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-Use-GtkName-Prefix-to-avoid-issues-if-ac.patch

2 years agomedia: Use gstplayer from meson subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:01:40 +0000 (20:01 +0100)]
media: Use gstplayer from meson subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name media-Use-gstplayer-from-meson-subproject.patch

2 years agogstreamer-player-1.0: Do not install it if it's a subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:59:43 +0000 (19:59 +0100)]
gstreamer-player-1.0: Do not install it if it's a subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-1.0-Do-not-install-it-if-it-s-a-subproje.patch

2 years agosubprojects: Add gst-player-1.0 as subporject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subporject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name subprojects-Add-gst-player-1.0-as-subporject.patch

2 years agoDisable clipboard test
Simon McVittie [Fri, 3 Sep 2021 14:08:08 +0000 (15:08 +0100)]
Disable clipboard test

This regularly times out on buildds, but I can't reproduce the hang
locally.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4229
Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-clipboard-test.patch

2 years agoDisable inscription-markup.ui reftest
Simon McVittie [Fri, 12 Aug 2022 09:44:17 +0000 (10:44 +0100)]
Disable inscription-markup.ui reftest

It's rendered 1px to the left of where it should be, which is not a
serious problem for practical use of GTK, but is a test failure.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5099
Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-inscription-markup.ui-reftest.patch

2 years agoreftests: Allow minor differences to be tolerated
Simon McVittie [Sat, 13 Feb 2021 16:19:10 +0000 (16:19 +0000)]
reftests: Allow minor differences to be tolerated

Based on an earlier patch by Michael Biebl, as used in Debian's GTK 3
packaging, with additional inspiration from librsvg's reftests.

Each .ui or .node reftest can have an accompanying .keyfile file
like this:

    [reftest]
    tolerated-diff-level=20
    tolerated-diff-pixels=1000

If the image differs, but the number of pixels that differ is no more
than tolerated-diff-pixels and the differences are no more than
tolerated-diff-level, then we treat it as a success with warnings, save
the .diff.png for analysis, and use g_test_incomplete() to record the
test-case as "TODO".

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftests-Allow-minor-differences-to-be-tolerated.patch

2 years agoreftest_compare_surfaces: Report how much the images differ
Simon McVittie [Sat, 13 Feb 2021 18:26:24 +0000 (18:26 +0000)]
reftest_compare_surfaces: Report how much the images differ

In unattended/non-interactive/autobuilder environments where the images
are not trivially accessible, this provides a way to distinguish between
totally different rendering and more subtle issues.

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

2 years agoRevert "build: Drop the install-tests option"
Jeremy Bicha [Thu, 12 Jan 2023 13:47:54 +0000 (08:47 -0500)]
Revert "build: Drop the install-tests option"

Debian and Ubuntu uses these installed tests as part of their
autopkgtest system

This reverts commit 3121f88265ac61733e257f5335473d6f139f158c.

Gbp-Pq: Name Revert-build-Drop-the-install-tests-option.patch

2 years agoRevert "tests: Stop copying the tool tests"
Jeremy Bicha [Mon, 5 Jun 2023 17:49:20 +0000 (13:49 -0400)]
Revert "tests: Stop copying the tool tests"

This reverts commit bb3a6214cbeaa3211be007192e536bd473323836.

This is actually used by the installed tests
which we also had to revert dropping (in a separate patch)

Gbp-Pq: Name Revert-tests-Stop-copying-the-tool-tests.patch

2 years agod/upstream/metadata: Use preferred Gitlab URLs
Simon McVittie [Sun, 6 Aug 2023 12:03:05 +0000 (13:03 +0100)]
d/upstream/metadata: Use preferred Gitlab URLs

Changes-By: lintian-brush
2 years agoRemove maintscripts unnecessary in any released Debian version
Simon McVittie [Sun, 6 Aug 2023 12:02:29 +0000 (13:02 +0100)]
Remove maintscripts unnecessary in any released Debian version

2 years agoRemove version constraints unnecessary since Debian 11
Simon McVittie [Sun, 6 Aug 2023 12:01:01 +0000 (13:01 +0100)]
Remove version constraints unnecessary since Debian 11

2 years agod/control.in: Only use libsysprof-capture-4-dev for shared library
Simon McVittie [Sun, 6 Aug 2023 11:51:25 +0000 (12:51 +0100)]
d/control.in: Only use libsysprof-capture-4-dev for shared library

libsysprof-capture-4-dev is currently a virtual package provided by
libsysprof-4-dev, which also includes GTK 4 GUI components and so depends
on libgtk-4-dev. If the Architecture: amd64 build happens to finish before
the Architecture: all build starts, then the Architecture: all build will
fail with an unsatisfiable build-dependency: libsysprof-4-dev Depends on
libgtk-4-dev, which Depends on libgtk-4-common (>= ${source:Version}),
which hasn't been built yet. The result is that libgtk-4-common can't
be built and the builds deadlock. We've been lucky enough to avoid this
until now, but version 4.10.5+ds-1 was not sufficiently lucky and has
become uninstallable and unbuildable.

Because the sysprof integration is part of the architecture-specific
library, we can break this cycle by only installing libsysprof-4-dev when
we are building the architecture-specific library, and excluding it
when we are only building architecture-independent documentation and
common files.

2 years agoreleasing package gtk4 version 4.10.5+ds-1
Jeremy Bícha [Sat, 5 Aug 2023 13:56:19 +0000 (09:56 -0400)]
releasing package gtk4 version 4.10.5+ds-1

2 years agoRecord gtk4 (4.10.5+ds-1) in archive suite sid
Jeremy Bícha [Sat, 5 Aug 2023 13:56:12 +0000 (14:56 +0100)]
Record gtk4 (4.10.5+ds-1) in archive suite sid

2 years agogstreamer-player: Use GtkName Prefix to avoid issues if actual library is included
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:08:30 +0000 (20:08 +0100)]
gstreamer-player: Use GtkName Prefix to avoid issues if actual library is included

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-Use-GtkName-Prefix-to-avoid-issues-if-ac.patch

2 years agomedia: Use gstplayer from meson subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 19:01:40 +0000 (20:01 +0100)]
media: Use gstplayer from meson subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name media-Use-gstplayer-from-meson-subproject.patch

2 years agogstreamer-player-1.0: Do not install it if it's a subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:59:43 +0000 (19:59 +0100)]
gstreamer-player-1.0: Do not install it if it's a subproject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-1.0-Do-not-install-it-if-it-s-a-subproje.patch

2 years agosubprojects: Add gst-player-1.0 as subporject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subporject

Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name subprojects-Add-gst-player-1.0-as-subporject.patch

2 years agoDisable clipboard test
Simon McVittie [Fri, 3 Sep 2021 14:08:08 +0000 (15:08 +0100)]
Disable clipboard test

This regularly times out on buildds, but I can't reproduce the hang
locally.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4229
Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-clipboard-test.patch

2 years agoDisable inscription-markup.ui reftest
Simon McVittie [Fri, 12 Aug 2022 09:44:17 +0000 (10:44 +0100)]
Disable inscription-markup.ui reftest

It's rendered 1px to the left of where it should be, which is not a
serious problem for practical use of GTK, but is a test failure.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5099
Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-inscription-markup.ui-reftest.patch

2 years agoreftests: Allow minor differences to be tolerated
Simon McVittie [Sat, 13 Feb 2021 16:19:10 +0000 (16:19 +0000)]
reftests: Allow minor differences to be tolerated

Based on an earlier patch by Michael Biebl, as used in Debian's GTK 3
packaging, with additional inspiration from librsvg's reftests.

Each .ui or .node reftest can have an accompanying .keyfile file
like this:

    [reftest]
    tolerated-diff-level=20
    tolerated-diff-pixels=1000

If the image differs, but the number of pixels that differ is no more
than tolerated-diff-pixels and the differences are no more than
tolerated-diff-level, then we treat it as a success with warnings, save
the .diff.png for analysis, and use g_test_incomplete() to record the
test-case as "TODO".

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftests-Allow-minor-differences-to-be-tolerated.patch

2 years agoreftest_compare_surfaces: Report how much the images differ
Simon McVittie [Sat, 13 Feb 2021 18:26:24 +0000 (18:26 +0000)]
reftest_compare_surfaces: Report how much the images differ

In unattended/non-interactive/autobuilder environments where the images
are not trivially accessible, this provides a way to distinguish between
totally different rendering and more subtle issues.

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3195
Applied-upstream: no, upstream want reftests to be a strict pass/fail with identical results required

Gbp-Pq: Topic debian
Gbp-Pq: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

2 years agoRevert "build: Drop the install-tests option"
Jeremy Bicha [Thu, 12 Jan 2023 13:47:54 +0000 (08:47 -0500)]
Revert "build: Drop the install-tests option"

Debian and Ubuntu uses these installed tests as part of their
autopkgtest system

This reverts commit 3121f88265ac61733e257f5335473d6f139f158c.

Gbp-Pq: Name Revert-build-Drop-the-install-tests-option.patch

2 years agoRevert "tests: Stop copying the tool tests"
Jeremy Bicha [Mon, 5 Jun 2023 17:49:20 +0000 (13:49 -0400)]
Revert "tests: Stop copying the tool tests"

This reverts commit bb3a6214cbeaa3211be007192e536bd473323836.

This is actually used by the installed tests
which we also had to revert dropping (in a separate patch)

Gbp-Pq: Name Revert-tests-Stop-copying-the-tool-tests.patch

2 years agogtk4 (4.10.5+ds-1) unstable; urgency=medium
Jeremy Bícha [Sat, 5 Aug 2023 13:56:12 +0000 (14:56 +0100)]
gtk4 (4.10.5+ds-1) unstable; urgency=medium

  * New upstream release

[dgit import unpatched gtk4 4.10.5+ds-1]

2 years agoImport gtk4_4.10.5+ds.orig.tar.xz
Jeremy Bícha [Sat, 5 Aug 2023 13:56:12 +0000 (14:56 +0100)]
Import gtk4_4.10.5+ds.orig.tar.xz

[dgit import orig gtk4_4.10.5+ds.orig.tar.xz]

2 years agoImport gtk4_4.10.5+ds-1.debian.tar.xz
Jeremy Bícha [Sat, 5 Aug 2023 13:56:12 +0000 (14:56 +0100)]
Import gtk4_4.10.5+ds-1.debian.tar.xz

[dgit import tarball gtk4 4.10.5+ds-1 gtk4_4.10.5+ds-1.debian.tar.xz]

2 years agoNew upstream release
Jeremy Bícha [Sat, 5 Aug 2023 12:56:07 +0000 (08:56 -0400)]
New upstream release

2 years agoUpdate upstream source from tag 'upstream/4.10.5+ds'
Jeremy Bícha [Sat, 5 Aug 2023 12:56:06 +0000 (08:56 -0400)]
Update upstream source from tag 'upstream/4.10.5+ds'

Update to upstream version '4.10.5+ds'
with Debian dir 5d07f4ce2786683425076e4458da83a3ad8d29ac

2 years agoNew upstream version 4.10.5+ds
Jeremy Bícha [Sat, 5 Aug 2023 12:55:51 +0000 (08:55 -0400)]
New upstream version 4.10.5+ds

2 years ago4.10.5
Matthias Clasen [Sat, 5 Aug 2023 09:50:38 +0000 (05:50 -0400)]
4.10.5

2 years agoMerge branch 'cherry-pick-f0f7613a' into 'gtk-4-10'
Benjamin Otte [Wed, 26 Jul 2023 05:33:04 +0000 (05:33 +0000)]
Merge branch 'cherry-pick-f0f7613a' into 'gtk-4-10'

Merge branch 'zbrown/pending' into 'main'

See merge request GNOME/gtk!6214

2 years agoMerge branch 'zbrown/pending' into 'main'
Benjamin Otte [Wed, 26 Jul 2023 04:39:13 +0000 (04:39 +0000)]
Merge branch 'zbrown/pending' into 'main'

filterlistmodel: emit ::notify::pending after ::items-changed

See merge request GNOME/gtk!6213

(cherry picked from commit f0f7613adb4cb90826d65f60258c5cd1b529dc77)

72a1bd64 filterlistmodel: emit ::notify::pending after ::items-changed

2 years agoUpdate Hungarian translation
Balázs Meskó [Tue, 25 Jul 2023 23:43:05 +0000 (23:43 +0000)]
Update Hungarian translation

2 years agoUpdate Vietnamese translation
Ngọc Quân Trần [Sat, 22 Jul 2023 08:16:20 +0000 (08:16 +0000)]
Update Vietnamese translation

2 years agoUpdate Greek translation
Efstathios Iosifidis [Fri, 21 Jul 2023 22:29:43 +0000 (22:29 +0000)]
Update Greek translation

2 years agoUpdate Spanish translation
Daniel Mustieles [Wed, 19 Jul 2023 12:36:24 +0000 (12:36 +0000)]
Update Spanish translation

2 years agoRevert "Updated Spanish translation"
Daniel Mustieles [Wed, 19 Jul 2023 12:34:43 +0000 (14:34 +0200)]
Revert "Updated Spanish translation"

This reverts commit f0c27b7c8e6f9a4b27ef2e145573d56fa133dc83.

2 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 19 Jul 2023 12:24:40 +0000 (14:24 +0200)]
Updated Spanish translation

2 years agoreleasing package gtk4 version 4.10.4+ds-2
Jeremy Bícha [Wed, 19 Jul 2023 11:53:50 +0000 (07:53 -0400)]
releasing package gtk4 version 4.10.4+ds-2

2 years agoUpdate Brazilian Portuguese translation
Leônidas Araújo [Mon, 26 Jun 2023 13:08:44 +0000 (13:08 +0000)]
Update Brazilian Portuguese translation

2 years agoMerge branch 'wip/carlosg/clear-resize-cursor-4-10' into 'gtk-4-10'
Carlos Garnacho [Sun, 25 Jun 2023 19:04:58 +0000 (19:04 +0000)]
Merge branch 'wip/carlosg/clear-resize-cursor-4-10' into 'gtk-4-10'

window: Clear resize_cursor on leave notify events (4.10)

See merge request GNOME/gtk!6143

2 years agowindow: Clear resize_cursor on leave notify events
Michel Dänzer [Mon, 12 Jun 2023 16:28:29 +0000 (18:28 +0200)]
window: Clear resize_cursor on leave notify events

When the pointer leaves the window surface, gtk_window_capture_motion
will not be called anymore, so priv->resize_cursor may remain non-NULL
indefinitely without this.

If update_cursor is later called (via gtk_window_maybe_update_cursor) on
a virtual enter notify event (e.g. because the pointer entered a
descendant surface), it would previously re-set the window surface
cursor to priv->resize_cursor, which could result in the wrong cursor
shape being shown for descendant surfaces.

This affected mutter-x11-frames, see
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1557.

One could also say that if the pointer leaves the window surface, it's
trivially not over any window edge.

(cherry-picked from commit f8fd04402eaf500abc72d5529165068660bd6911)

2 years agoMerge branch 'unaligned-access-for-gtk-4-10' into 'gtk-4-10'
Benjamin Otte [Tue, 20 Jun 2023 16:06:09 +0000 (16:06 +0000)]
Merge branch 'unaligned-access-for-gtk-4-10' into 'gtk-4-10'

gtk: Align key_size up to key_align (for gtk-4-10)

See merge request GNOME/gtk!6124

2 years agogtk: Align key_size up to key_align
Matt Turner [Mon, 19 Jun 2023 19:50:04 +0000 (15:50 -0400)]
gtk: Align key_size up to key_align

Avoids unaligned accesses when e.g. the key_size is 12 and key_align is
8. We need to round the key size up to 16 to ensure that all keys are
appropriately aligned.

This manifested as a failure in the `gtk:gtk / sorter` unit test on
sparc.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5907
(cherry picked from commit 3f360aa883dc51ad986c721be01b494020e5ac9d)

2 years agogtk: Pass G_ALIGNOF (...) to gtk_sort_keys_new
Matt Turner [Mon, 19 Jun 2023 19:47:17 +0000 (15:47 -0400)]
gtk: Pass G_ALIGNOF (...) to gtk_sort_keys_new

The sizeof and G_ALIGNOF are often, but not always, identical.

(cherry picked from commit a4440453868ebe7c87d0a69de9609b33a688a8bb)

2 years agoMerge branch 'forgotten-410-backport' into 'gtk-4-10'
Matthias Clasen [Tue, 13 Jun 2023 14:41:10 +0000 (14:41 +0000)]
Merge branch 'forgotten-410-backport' into 'gtk-4-10'

Revert "css: Simplify default values"

See merge request GNOME/gtk!6092

2 years agoRevert "css: Simplify default values"
Matthias Clasen [Fri, 12 May 2023 18:09:36 +0000 (14:09 -0400)]
Revert "css: Simplify default values"

This reverts commit 1efa39672b94ba12f42f386d0eedb7ed6d7c3d03.

We want to use corner values for corner properties.

Fixes: #5892
2 years agoUpdate Czech translation
Daniel Rusek [Mon, 12 Jun 2023 13:14:40 +0000 (13:14 +0000)]
Update Czech translation

2 years agoreleasing package gtk4 version 4.10.4+ds-1
Jeremy Bicha [Mon, 5 Jun 2023 19:05:11 +0000 (15:05 -0400)]
releasing package gtk4 version 4.10.4+ds-1

2 years agoRevert a buildsystem change that affected our installed-tests patch
Jeremy Bicha [Mon, 5 Jun 2023 17:49:03 +0000 (13:49 -0400)]
Revert a buildsystem change that affected our installed-tests patch

2 years agoNew upstream release
Jeremy Bicha [Mon, 5 Jun 2023 17:06:51 +0000 (13:06 -0400)]
New upstream release

2 years agoUpdate upstream source from tag 'upstream/4.10.4+ds'
Jeremy Bicha [Mon, 5 Jun 2023 17:06:51 +0000 (13:06 -0400)]
Update upstream source from tag 'upstream/4.10.4+ds'

Update to upstream version '4.10.4+ds'
with Debian dir a2d5f1a473ed957eb42ebf96f58694b47efc1cac

2 years agoNew upstream version 4.10.4+ds
Jeremy Bicha [Mon, 5 Jun 2023 17:06:24 +0000 (13:06 -0400)]
New upstream version 4.10.4+ds

2 years agoPost-release version bump
Matthias Clasen [Mon, 5 Jun 2023 15:38:52 +0000 (11:38 -0400)]
Post-release version bump

2 years ago4.10.4
Matthias Clasen [Mon, 5 Jun 2023 15:27:22 +0000 (11:27 -0400)]
4.10.4

2 years agoMerge branch 'gtk-4-10-backports' into 'gtk-4-10'
Matthias Clasen [Mon, 5 Jun 2023 12:35:40 +0000 (12:35 +0000)]
Merge branch 'gtk-4-10-backports' into 'gtk-4-10'

tests: Stop copying the tool tests

See merge request GNOME/gtk!6062

2 years agostringsorter: Handle NULL strings
Benjamin Otte [Sat, 27 May 2023 17:05:32 +0000 (19:05 +0200)]
stringsorter: Handle NULL strings

NULL is a valid string GValue, so we need to handle it.
The utf8 normalizing and collating functions do not, so we better catch
it early.

2 years agosearchentry: Improve size allocation
Matthias Clasen [Mon, 5 Jun 2023 01:44:37 +0000 (21:44 -0400)]
searchentry: Improve size allocation

We want to always reserve space for the clear icon,
but let the text widget use that space when the icon
isn't shown. A plain box layout can't do that, so
do our own size allocation.

2 years agotext: Make the placeholder non-intrusive
Matthias Clasen [Mon, 5 Jun 2023 01:45:59 +0000 (21:45 -0400)]
text: Make the placeholder non-intrusive

We never want to let the placeholder cause
the widget to grow, so set its max-width-chars
to a small value to make it ellipsize.

2 years agorenderer: return_if_fail() if the given texture size is 0
Benjamin Otte [Sat, 20 May 2023 23:27:09 +0000 (01:27 +0200)]
renderer: return_if_fail() if the given texture size is 0

All renderers SEGV currently when that happens.

2 years agowayland: Don't leak cursor structs
Matthias Clasen [Thu, 1 Jun 2023 00:34:28 +0000 (20:34 -0400)]
wayland: Don't leak cursor structs

Found by gcc's -fanalyzer.

2 years agoRevert "gdk/x11: Also grab keyboard during XDnD grabs"
Matthias Clasen [Sat, 3 Jun 2023 16:17:55 +0000 (12:17 -0400)]
Revert "gdk/x11: Also grab keyboard during XDnD grabs"

This reverts commit ae94417f80c92b26792280a9b798cafc01e49232.

2 years agox11: Stop using passive grabs
Matthias Clasen [Sat, 3 Jun 2023 14:44:21 +0000 (10:44 -0400)]
x11: Stop using passive grabs

The keynav that this implements is half-broken under
xwayland anyway, and it confused and complicates things
on the compositor side.

2 years agox11: Trap XRandr errors when getting outputs during init and update
Marco Trevisan (Treviño) [Thu, 1 Jun 2023 22:23:51 +0000 (00:23 +0200)]
x11: Trap XRandr errors when getting outputs during init and update

We may try to update the XRR outputs and Crtcs when they're changing in
the server, and so we may get BadRROutput that we're currently not
handling properly.

As per this, use traps and check whether we got errors, and if we did
let's ignore the current output.

It's not required to call init_randr13() again because if we got errors
it's very likely that there's a change coming that will be notified at
next iteration during which we'll repeat the init actions.

2 years agoWindow: Copy caveats from :*visible to the setters
Daniel Boles [Thu, 1 Jun 2023 19:31:22 +0000 (20:31 +0100)]
Window: Copy caveats from :*visible to the setters

2 years agoWindow: Fix wrong case in property attribute which
Daniel Boles [Thu, 1 Jun 2023 19:26:57 +0000 (20:26 +0100)]
Window: Fix wrong case in property attribute which

rendered the literal text `org.gtk.MEthod.set_property focus-visible`.