gtk4.git
23 months agoManual merge of version 4.12.3+ds-1+rpi1 and 4.12.4+ds-3 to produce 4.12.4+ds-3+rpi1 archive/raspbian/4.12.4+ds-3+rpi1 raspbian/4.12.4+ds-3+rpi1
Peter Michael Green [Tue, 19 Dec 2023 10:13:04 +0000 (10:13 +0000)]
Manual merge of version 4.12.3+ds-1+rpi1 and 4.12.4+ds-3 to produce 4.12.4+ds-3+rpi1

2 years agoMake fast forward from 4.12.4+ds-2
Simon McVittie [Sat, 9 Dec 2023 01:33:26 +0000 (01:33 +0000)]
Make fast forward from 4.12.4+ds-2

[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 agotests: Mark gltexture as expected to fail on big-endian machines
Simon McVittie [Tue, 22 Aug 2023 10:57:36 +0000 (11:57 +0100)]
tests: Mark gltexture as expected to fail on big-endian machines

Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-Mark-gltexture-as-expected-to-fail-on-big-endian-ma.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 subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subproject

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 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 agotests: mark headless tests as flaky
Jeremy Bícha [Tue, 8 Aug 2023 18:50:05 +0000 (14:50 -0400)]
tests: mark headless tests as flaky

See baaa7482489b0f7446ef1e0130e527a169c43b0c

Gbp-Pq: Name tests-mark-headless-tests-as-flaky.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 agogsk: Always use RGBA on big-endian architectures
Simon McVittie [Fri, 8 Dec 2023 16:42:56 +0000 (16:42 +0000)]
gsk: Always use RGBA on big-endian architectures

The memorytexture test started failing on big-endian CPUs while using
"desktop" GL (not GLES) in commit b0e26873 "gsk: Use has_bgra in more
places". The subsequent commit f5812808 "gsk: Restore bigendian support"
was meant to fix this, but it seems it did not.

Always taking the RGBA code-path on big-endian might not be optimal,
but it seems to result in the test passing again.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/6260
Bug-Debian: https://bugs.debian.org/1057782
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6653

Gbp-Pq: Name gsk-Always-use-RGBA-on-big-endian-architectures.patch

2 years agoRelease to unstable
Simon McVittie [Sat, 9 Dec 2023 01:33:42 +0000 (01:33 +0000)]
Release to unstable

2 years agod/control: Remove pandoc build-dependency
Simon McVittie [Sat, 9 Dec 2023 01:33:20 +0000 (01:33 +0000)]
d/control: Remove pandoc build-dependency

It isn't needed any more, and pandoc is currently uninstallable in
unstable (#1057309, #1053686).

2 years agoRelease to unstable
Simon McVittie [Fri, 8 Dec 2023 17:37:01 +0000 (17:37 +0000)]
Release to unstable

2 years agoDeclare fast forward from 4.12.4+ds-1
Simon McVittie [Fri, 8 Dec 2023 17:36:22 +0000 (17:36 +0000)]
Declare fast forward from 4.12.4+ds-1

[dgit --quilt=unapplied --overwrite]

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 agotests: Mark gltexture as expected to fail on big-endian machines
Simon McVittie [Tue, 22 Aug 2023 10:57:36 +0000 (11:57 +0100)]
tests: Mark gltexture as expected to fail on big-endian machines

Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-Mark-gltexture-as-expected-to-fail-on-big-endian-ma.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 subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subproject

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 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 agotests: mark headless tests as flaky
Jeremy Bícha [Tue, 8 Aug 2023 18:50:05 +0000 (14:50 -0400)]
tests: mark headless tests as flaky

See baaa7482489b0f7446ef1e0130e527a169c43b0c

Gbp-Pq: Name tests-mark-headless-tests-as-flaky.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 agogsk: Always use RGBA on big-endian architectures
Simon McVittie [Fri, 8 Dec 2023 16:42:56 +0000 (16:42 +0000)]
gsk: Always use RGBA on big-endian architectures

The memorytexture test started failing on big-endian CPUs while using
"desktop" GL (not GLES) in commit b0e26873 "gsk: Use has_bgra in more
places". The subsequent commit f5812808 "gsk: Restore bigendian support"
was meant to fix this, but it seems it did not.

Always taking the RGBA code-path on big-endian might not be optimal,
but it seems to result in the test passing again.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/6260
Bug-Debian: https://bugs.debian.org/1057782
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6653

Gbp-Pq: Name gsk-Always-use-RGBA-on-big-endian-architectures.patch

2 years agoAdd proposed patch to fix test failure on big-endian CPUs
Simon McVittie [Fri, 8 Dec 2023 17:36:18 +0000 (17:36 +0000)]
Add proposed patch to fix test failure on big-endian CPUs

Closes: #1057782
2 years agoBuild-Depend on dh-sequence-gnome
Jeremy Bícha [Mon, 27 Nov 2023 16:04:17 +0000 (11:04 -0500)]
Build-Depend on dh-sequence-gnome

used by Ubuntu to pull in dh_translations

2 years agoreleasing package gtk4 version 4.12.4+ds-1
Jeremy Bícha [Mon, 27 Nov 2023 15:59:13 +0000 (10:59 -0500)]
releasing package gtk4 version 4.12.4+ds-1

2 years agoRecord gtk4 (4.12.4+ds-1) in archive suite sid
Jeremy Bícha [Mon, 27 Nov 2023 15:58:51 +0000 (10:58 -0500)]
Record gtk4 (4.12.4+ds-1) in archive suite sid

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 agotests: Mark gltexture as expected to fail on big-endian machines
Simon McVittie [Tue, 22 Aug 2023 10:57:36 +0000 (11:57 +0100)]
tests: Mark gltexture as expected to fail on big-endian machines

Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-Mark-gltexture-as-expected-to-fail-on-big-endian-ma.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 subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subproject

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 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 agotests: mark headless tests as flaky
Jeremy Bícha [Tue, 8 Aug 2023 18:50:05 +0000 (14:50 -0400)]
tests: mark headless tests as flaky

See baaa7482489b0f7446ef1e0130e527a169c43b0c

Gbp-Pq: Name tests-mark-headless-tests-as-flaky.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.12.4+ds-1) unstable; urgency=medium
Jeremy Bícha [Mon, 27 Nov 2023 15:58:51 +0000 (10:58 -0500)]
gtk4 (4.12.4+ds-1) unstable; urgency=medium

  * New upstream release

[dgit import unpatched gtk4 4.12.4+ds-1]

2 years agoImport gtk4_4.12.4+ds.orig.tar.xz
Jeremy Bícha [Mon, 27 Nov 2023 15:58:51 +0000 (10:58 -0500)]
Import gtk4_4.12.4+ds.orig.tar.xz

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

2 years agoImport gtk4_4.12.4+ds-1.debian.tar.xz
Jeremy Bícha [Mon, 27 Nov 2023 15:58:51 +0000 (10:58 -0500)]
Import gtk4_4.12.4+ds-1.debian.tar.xz

[dgit import tarball gtk4 4.12.4+ds-1 gtk4_4.12.4+ds-1.debian.tar.xz]

2 years agoNew upstream release
Jeremy Bícha [Mon, 27 Nov 2023 15:26:33 +0000 (10:26 -0500)]
New upstream release

2 years agoUpdate upstream source from tag 'upstream/4.12.4+ds'
Jeremy Bícha [Mon, 27 Nov 2023 15:26:33 +0000 (10:26 -0500)]
Update upstream source from tag 'upstream/4.12.4+ds'

Update to upstream version '4.12.4+ds'
with Debian dir bb344c20763a3a49aa1f106346878e34b17e38e0

2 years agoNew upstream version 4.12.4+ds
Jeremy Bícha [Mon, 27 Nov 2023 15:26:21 +0000 (10:26 -0500)]
New upstream version 4.12.4+ds

2 years ago4.12.4
Matthias Clasen [Fri, 17 Nov 2023 20:23:43 +0000 (15:23 -0500)]
4.12.4

2 years agoFix warnings when compiling with -pedantic
madmurphy [Wed, 15 Nov 2023 23:00:41 +0000 (23:00 +0000)]
Fix warnings when compiling with -pedantic

2 years agoAdd a debug node for CSS outlines
Benjamin Otte [Sun, 12 Nov 2023 11:55:59 +0000 (12:55 +0100)]
Add a debug node for CSS outlines

All the other CSS render operations have one, so outlines should, too.

This was found by tracking down a random border node in a rendering.

2 years agogtk: fix NULL pointer dereference
Andy Holmes [Mon, 13 Nov 2023 20:05:31 +0000 (12:05 -0800)]
gtk: fix NULL pointer dereference

`gtk_window_get_default_size()` claims width/height are optional-out
arguments, but defers to `gtk_window_get_remembered_size()` which
may dereference a NULL-pointer.

Since `gtk_window_get_remembered_size()` is only called by
`gtk_window_get_default_size()`, collapse it into the latter
and perform the NULL check there.

2 years agoinspector: Replace "no glyph" with space glyph
Benjamin Otte [Wed, 1 Nov 2023 20:57:16 +0000 (21:57 +0100)]
inspector: Replace "no glyph" with space glyph

This makes right-aligning the text work again.

2 years agoinspector: Use the right font for the fps overlay
Benjamin Otte [Wed, 1 Nov 2023 20:26:11 +0000 (21:26 +0100)]
inspector: Use the right font for the fps overlay

Initialize the font only when we have a widget that provides it. That
way we don't pick a terrible default font, but the widget's preferred
one.

2 years agoSome minor fpsoverlay improvements
Matthias Clasen [Wed, 1 Nov 2023 18:45:57 +0000 (14:45 -0400)]
Some minor fpsoverlay improvements

Avoid some allocations.

2 years agoinspector: Speed up the fps overlay
Matthias Clasen [Wed, 1 Nov 2023 17:55:29 +0000 (13:55 -0400)]
inspector: Speed up the fps overlay

Do less work!

2 years agodocs: Replace deprecated gtk_widget_show with gtk_widget_set_visible
Robert Ancell [Tue, 31 Oct 2023 00:27:26 +0000 (13:27 +1300)]
docs: Replace deprecated gtk_widget_show with gtk_widget_set_visible

2 years agogl: Fix padding in icon library
Benjamin Otte [Wed, 25 Oct 2023 19:12:23 +0000 (21:12 +0200)]
gl: Fix padding in icon library

The previous code would not pad the left side with the left column of
pixels but with the top row.

Test attached.

2 years agogsk: Fix texture-scale node Cairo drawing
Benjamin Otte [Fri, 27 Oct 2023 18:45:12 +0000 (20:45 +0200)]
gsk: Fix texture-scale node Cairo drawing

The code was interpreting x/y coordinates wrong sometimes and causing
things to not be drawn at the correct offset.

Testcase included.

2 years agorendernode-tool: Add --undecorated to show command
Benjamin Otte [Wed, 25 Oct 2023 18:31:01 +0000 (20:31 +0200)]
rendernode-tool: Add --undecorated to show command

This is to get exactly just the rendernode drawn when testing, and not
any extra drawing code.

2 years agowidget-factory: Remove insert-image icon
Kleis Auke Wolthuizen [Sat, 28 Oct 2023 17:47:33 +0000 (19:47 +0200)]
widget-factory: Remove insert-image icon

This icon is already present in the hicolor icon theme.

2 years agowidget-factory: Remove view-grid-symbolic icon
Kleis Auke Wolthuizen [Sat, 28 Oct 2023 17:46:47 +0000 (19:46 +0200)]
widget-factory: Remove view-grid-symbolic icon

No longer needed as it's included in the hicolor icon theme now.

2 years agoicons: Add view-grid-symbolic
Kleis Auke Wolthuizen [Sat, 28 Oct 2023 17:42:30 +0000 (19:42 +0200)]
icons: Add view-grid-symbolic

This showed up as missing icon in the file chooser when used with
the hicolor icon theme.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/6184

2 years agoAdjust tests
Lukáš Tyrychtr [Thu, 19 Oct 2023 15:08:57 +0000 (17:08 +0200)]
Adjust tests

2 years agoa11y: When using rule 2.E for computing accessible name, use it only if appropriate
Lukáš Tyrychtr [Thu, 19 Oct 2023 13:56:38 +0000 (15:56 +0200)]
a11y: When using rule 2.E for computing accessible name, use it only if appropriate

We were using it in all cases, so, we were using it to compute descriptions,
and also for non-embedded controls. That was overriding descriptions
set, for example, in Gnome settings, and was causing the value of spinboxes
to be read multiple times.

2 years agobuilds: Require -Zc:preprocessor for Visual Studio debug builds
Chun-wei Fan [Tue, 24 Oct 2023 06:54:19 +0000 (14:54 +0800)]
builds: Require -Zc:preprocessor for Visual Studio debug builds

This flag is actually required for the debugging code to successfully build,
so check that it is really there for debug-enabled Visual Studio builds.

2 years agoMSVC Builds: Don't enable -utf-8 explicitly
Chun-wei Fan [Mon, 19 Jun 2023 04:48:28 +0000 (12:48 +0800)]
MSVC Builds: Don't enable -utf-8 explicitly

We already require a Meson release that enables -utf-8 by default, so we don't
really need to explicitly enable it here.

2 years agobuild: Add msvc_recommended_pragmas.h
Chun-wei Fan [Mon, 19 Jun 2023 04:31:16 +0000 (12:31 +0800)]
build: Add msvc_recommended_pragmas.h

We really always want to force-include msvc_recommended_pragmas.h to check for
things at compile time so that we can avoid stuff like missing includes or
attempting to return a value in a function that is supposed to have a
void-return-type.

The current problem is that, as indicated in the Visual Studio CI job, that we
couldn't locate msvc_recommended_pragmas.h during the build if GLib is built
as a subproject, and/or when msvc_recommended_pragmas.h is not in the paths
indicated by %INCLUDE%, meaning that the aforementioned issues would not be
caught by CI, which will then break builds on Visual Studio for people when
msvc_recommended_pragmas.h is found during their builds.

It would also be nice to be quiet from the warnings that we can really
disregard anyways.

So, add a copy of msvc_recommended_pragmas.h from GLib and update the build
files to look for it in build-aux/msvc, so that it can always be used during
the build, especially by the CI.

2 years agoFix swizzle values for some memory formats
Matthias Clasen [Thu, 26 Oct 2023 01:39:52 +0000 (21:39 -0400)]
Fix swizzle values for some memory formats

For opaque formats with 3 channels, we should use the default
GL_ALPHA, but for opaque formats with an ignored 4th channel,
we must use GL_ONE.

2 years agotranslated bn.po and hi.po
sudip [Tue, 24 Oct 2023 10:50:24 +0000 (16:20 +0530)]
translated bn.po and hi.po

Resolves:https://gitlab.gnome.org/GNOME/gtk/-/issues/6164

2 years agogl: Remove optimization that does the wrong thing
Benjamin Otte [Mon, 23 Oct 2023 23:17:43 +0000 (01:17 +0200)]
gl: Remove optimization that does the wrong thing

Drawing a texture-scale node like a texture node when the filter is set
to "linear" doesn't work, because the texture node switches to
trilinear when mipmaps are available.

2 years agogl: Make sure render_texture() sets the right format for high depth
Benjamin Otte [Mon, 23 Oct 2023 19:21:03 +0000 (21:21 +0200)]
gl: Make sure render_texture() sets the right format for high depth

Setting the format got lost when converting this coe to the texture
builder, because that codepaths avods the texture sniffing and always
uses RGBA8.

2 years agogdk: Make float32 report its true depth
Benjamin Otte [Mon, 23 Oct 2023 19:20:31 +0000 (21:20 +0200)]
gdk: Make float32 report its true depth

I have no idea how this is the only value that is wrong.

2 years agoRelease to unstable
Simon McVittie [Fri, 17 Nov 2023 11:06:41 +0000 (11:06 +0000)]
Release to unstable

2 years agoMake fast forward from 4.12.3+ds-2
Simon McVittie [Fri, 17 Nov 2023 11:06:27 +0000 (11:06 +0000)]
Make fast forward from 4.12.3+ds-2

[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 agotests: Mark gltexture as expected to fail on big-endian machines
Simon McVittie [Tue, 22 Aug 2023 10:57:36 +0000 (11:57 +0100)]
tests: Mark gltexture as expected to fail on big-endian machines

Forwarded: not-needed, workaround

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-Mark-gltexture-as-expected-to-fail-on-big-endian-ma.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 subproject
Marco Trevisan (Treviño) [Fri, 17 Mar 2023 18:50:10 +0000 (19:50 +0100)]
subprojects: Add gst-player-1.0 as subproject

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 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 agotests: mark headless tests as flaky
Jeremy Bícha [Tue, 8 Aug 2023 18:50:05 +0000 (14:50 -0400)]
tests: mark headless tests as flaky

See baaa7482489b0f7446ef1e0130e527a169c43b0c

Gbp-Pq: Name tests-mark-headless-tests-as-flaky.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/control: Use ${gir:Provides} to generate virtual package names
Simon McVittie [Fri, 17 Nov 2023 11:06:22 +0000 (11:06 +0000)]
d/control: Use ${gir:Provides} to generate virtual package names

2 years agod/control: Add ${gir:Depends} to -dev package
Simon McVittie [Fri, 17 Nov 2023 11:06:07 +0000 (11:06 +0000)]
d/control: Add ${gir:Depends} to -dev package

This will add dependencies on gir1.2-pango-1.0-dev and so on.

2 years agod/control: Add more gir1.2-x-y-dev build-dependencies
Simon McVittie [Wed, 15 Nov 2023 12:02:59 +0000 (12:02 +0000)]
d/control: Add more gir1.2-x-y-dev build-dependencies

Gbp-Dch: ignore

2 years agod/control: Build-depend on relevant gir1.2-*-dev virtual packages
Simon McVittie [Tue, 14 Nov 2023 10:05:55 +0000 (10:05 +0000)]
d/control: Build-depend on relevant gir1.2-*-dev virtual packages

This will help with eventually converting some or all of them into real
packages, to allow GIR XML to be omitted when cross-compiling or
bootstrapping.

2 years agoUpdate Russian translation
Artur S0 [Sat, 4 Nov 2023 02:05:59 +0000 (02:05 +0000)]
Update Russian translation

2 years agoMerge branch 'invalid-client-rects-4-12' into 'gtk-4-12'
Luca Bacci [Fri, 3 Nov 2023 21:23:50 +0000 (21:23 +0000)]
Merge branch 'invalid-client-rects-4-12' into 'gtk-4-12'

[4.12] GdkWin32: ignore invalid client rects

See merge request GNOME/gtk!6545

2 years agoGdkWin32: ignore invalid client rects
G.Willems [Tue, 19 Sep 2023 18:29:04 +0000 (20:29 +0200)]
GdkWin32: ignore invalid client rects

Gdk-Win32 uses GetClientRect() internally to query the surfaces coordinates,
but this API may fail in some transient contexts (observed when iconifying
a maximized window).
Check if the rect area is null, and don't update the surface position in
that case. This will keep the current surface size, until Win32 notifies
the new valid window state later.
This prevents using a nulled next_layout for toplevel size computation,
which would break widgets allocation once notified on gtk side.

Fixes #5724
Closes #5724