gtk4.git
3 years agoMerge version 4.6.6+ds-1+rpi1 and 4.7.2+ds-3 to produce 4.7.2+ds-3+rpi1 archive/raspbian/4.7.2+ds-3+rpi1 raspbian/4.7.2+ds-3+rpi1
Raspbian automatic forward porter [Sun, 28 Aug 2022 16:44:53 +0000 (17:44 +0100)]
Merge version 4.6.6+ds-1+rpi1 and 4.7.2+ds-3 to produce 4.7.2+ds-3+rpi1

3 years agoMerge gtk4 (4.7.2+ds-3) import into refs/heads/workingbranch
Jeremy Bicha [Sun, 21 Aug 2022 21:40:46 +0000 (22:40 +0100)]
Merge gtk4 (4.7.2+ds-3) import into refs/heads/workingbranch

3 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: Name Disable-inscription-markup.ui-reftest.patch

3 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

3 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: Name reftests-Allow-minor-differences-to-be-tolerated.patch

3 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: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

3 years agobuild: Add an option to use more conservative GResource embedding
Simon McVittie [Mon, 15 Aug 2022 21:24:26 +0000 (22:24 +0100)]
build: Add an option to use more conservative GResource embedding

Doing clever things with objcopy is faster, but also doesn't work on
all toolchains and architectures: in particular, Debian has had trouble
with this on arm and mips.

Developers will want to leave this option switched on for faster
incremental builds (unless their toolchain doesn't support it), but in
a distro build environment where we are compiling all of GTK every time,
the cost of potentially unreliable builds is higher than the cost of
using slower but more conservative GResource embedding.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5107
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4956
Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name build-Add-an-option-to-use-more-conservative-GResource-em.patch

3 years agogtk4 (4.7.2+ds-3) unstable; urgency=medium
Jeremy Bicha [Sun, 21 Aug 2022 21:40:46 +0000 (22:40 +0100)]
gtk4 (4.7.2+ds-3) unstable; urgency=medium

  [ Samuel Thibault ]
  * debian/libgtk-4-1.symbols.in: Mark more Wayland symbols as Linux-specific
  * Build-depend on dh-exec
  * Avoid trying to install Wayland documentation on non-Linux
    (Closes: #1017866)

  [ Jeremy Bicha ]
  * Release to unstable

[dgit import unpatched gtk4 4.7.2+ds-3]

3 years agoImport gtk4_4.7.2+ds-3.debian.tar.xz
Jeremy Bicha [Sun, 21 Aug 2022 21:40:46 +0000 (22:40 +0100)]
Import gtk4_4.7.2+ds-3.debian.tar.xz

[dgit import tarball gtk4 4.7.2+ds-3 gtk4_4.7.2+ds-3.debian.tar.xz]

3 years agoImport gtk4_4.7.2+ds.orig.tar.xz
Simon McVittie [Tue, 16 Aug 2022 10:24:01 +0000 (11:24 +0100)]
Import gtk4_4.7.2+ds.orig.tar.xz

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

3 years agoDeclare fast forward from 4.6.6+ds-1
Simon McVittie [Mon, 8 Aug 2022 18:22:54 +0000 (19:22 +0100)]
Declare fast forward from 4.6.6+ds-1

[dgit --quilt=unapplied --overwrite]

3 years agoWork around #1014417 in Meson
Simon McVittie [Mon, 8 Aug 2022 15:50:40 +0000 (16:50 +0100)]
Work around #1014417 in Meson

Forwarded: not-needed, Meson should be fixed instead

Gbp-Pq: Name Work-around-1014417-in-Meson.patch

3 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

3 years agoSkip some known-failing tests on mips-family architectures
Simon McVittie [Thu, 2 Sep 2021 22:31:54 +0000 (23:31 +0100)]
Skip some known-failing tests on mips-family architectures

Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-some-known-failing-tests-on-mips-family-architecture.patch

3 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: Name reftests-Allow-minor-differences-to-be-tolerated.patch

3 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: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

3 years agoRelease to unstable
Simon McVittie [Mon, 8 Aug 2022 18:23:03 +0000 (19:23 +0100)]
Release to unstable

3 years agod/gtk-4-tests.lintian-overrides: Update syntax for current Lintian
Simon McVittie [Mon, 8 Aug 2022 18:21:34 +0000 (19:21 +0100)]
d/gtk-4-tests.lintian-overrides: Update syntax for current Lintian

3 years agod/copyright: Drop unused GPL license stanzas
Simon McVittie [Mon, 8 Aug 2022 18:21:18 +0000 (19:21 +0100)]
d/copyright: Drop unused GPL license stanzas

3 years agoMigrate GLib 2.68.0 build-dependency from d/control to d/control.in
Simon McVittie [Mon, 8 Aug 2022 18:20:56 +0000 (19:20 +0100)]
Migrate GLib 2.68.0 build-dependency from d/control to d/control.in

Fixes: ab776361 "Bump required glib build dependency"
3 years agoStandards-Version: 4.6.1 (no changes required)
Simon McVittie [Mon, 8 Aug 2022 18:19:48 +0000 (19:19 +0100)]
Standards-Version: 4.6.1 (no changes required)

3 years agoAdd temporary patch to work around #1014417 in Meson
Simon McVittie [Mon, 8 Aug 2022 15:51:02 +0000 (16:51 +0100)]
Add temporary patch to work around #1014417 in Meson

3 years agoDrop erroneous !nocheck annotation from python3-gi Build-Depends
Evangelos Ribeiro Tzaras [Wed, 13 Jul 2022 20:53:25 +0000 (22:53 +0200)]
Drop erroneous !nocheck annotation from python3-gi Build-Depends

Closes: #1014878
3 years agoMerge version 4.6.5+ds-1+rpi1 and 4.6.6+ds-1 to produce 4.6.6+ds-1+rpi1 archive/raspbian/4.6.6+ds-1+rpi1 raspbian/4.6.6+ds-1+rpi1
Raspbian automatic forward porter [Fri, 8 Jul 2022 16:44:39 +0000 (17:44 +0100)]
Merge version 4.6.5+ds-1+rpi1 and 4.6.6+ds-1 to produce 4.6.6+ds-1+rpi1

3 years agoreleasing package gtk4 version 4.6.6+ds-1
Jeremy Bicha [Tue, 5 Jul 2022 15:24:42 +0000 (11:24 -0400)]
releasing package gtk4 version 4.6.6+ds-1

3 years agoRecord gtk4 (4.6.6+ds-1) in archive suite sid
Jeremy Bicha [Tue, 5 Jul 2022 15:24:34 +0000 (16:24 +0100)]
Record gtk4 (4.6.6+ds-1) in archive suite sid

Record that
  4.6.6+ds-1           Import of source package
should be treated as descended from
  4.6.4+ds-3           dgit suite branch on dgit git server
  4.6.5+ds-1           dgit client's archive history view

3 years agoMerge gtk4 (4.6.6+ds-1) import into refs/heads/workingbranch
Jeremy Bicha [Tue, 5 Jul 2022 15:24:34 +0000 (16:24 +0100)]
Merge gtk4 (4.6.6+ds-1) import into refs/heads/workingbranch

3 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

3 years agoSkip some known-failing tests on mips-family architectures
Simon McVittie [Thu, 2 Sep 2021 22:31:54 +0000 (23:31 +0100)]
Skip some known-failing tests on mips-family architectures

Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-some-known-failing-tests-on-mips-family-architecture.patch

3 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: Name reftests-Allow-minor-differences-to-be-tolerated.patch

3 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: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

3 years agogtk4 (4.6.6+ds-1) unstable; urgency=medium
Jeremy Bicha [Tue, 5 Jul 2022 15:24:34 +0000 (16:24 +0100)]
gtk4 (4.6.6+ds-1) unstable; urgency=medium

  [ Jeremy Bicha ]
  * New upstream release (LP: #1980742)

  [ Simon McVittie ]
  * d/tests/installed-tests: Fail on unset variable references
  * d/tests/installed-tests: Fail if no tests are found

  [ Evangelos Ribeiro Tzaras ]
  * Bump required glib build dependency

[dgit import unpatched gtk4 4.6.6+ds-1]

3 years agoImport gtk4_4.6.6+ds.orig.tar.xz
Jeremy Bicha [Tue, 5 Jul 2022 15:24:34 +0000 (16:24 +0100)]
Import gtk4_4.6.6+ds.orig.tar.xz

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

3 years agoImport gtk4_4.6.6+ds-1.debian.tar.xz
Jeremy Bicha [Tue, 5 Jul 2022 15:24:34 +0000 (16:24 +0100)]
Import gtk4_4.6.6+ds-1.debian.tar.xz

[dgit import tarball gtk4 4.6.6+ds-1 gtk4_4.6.6+ds-1.debian.tar.xz]

3 years agoNew upstream release
Jeremy Bicha [Tue, 5 Jul 2022 13:59:44 +0000 (09:59 -0400)]
New upstream release

3 years agoUpdate upstream source from tag 'upstream/4.6.6+ds'
Jeremy Bicha [Tue, 5 Jul 2022 13:59:43 +0000 (09:59 -0400)]
Update upstream source from tag 'upstream/4.6.6+ds'

Update to upstream version '4.6.6+ds'
with Debian dir 8f8c2d0eb065d4a6aec53a2f804c533d86ad5a74

3 years agoNew upstream version 4.6.6+ds
Jeremy Bicha [Tue, 5 Jul 2022 13:59:00 +0000 (09:59 -0400)]
New upstream version 4.6.6+ds

3 years agoUpdate debian/changelog
Jeremy Bicha [Tue, 5 Jul 2022 13:53:50 +0000 (09:53 -0400)]
Update debian/changelog

3 years ago4.6.6
Matthias Clasen [Sat, 2 Jul 2022 18:38:25 +0000 (14:38 -0400)]
4.6.6

3 years agoBump required glib build dependency
Evangelos Ribeiro Tzaras [Sun, 26 Jun 2022 07:40:45 +0000 (09:40 +0200)]
Bump required glib build dependency

While meson.build indicates that 2.66 is enough, one of the tests
introduced API that is only available to 2.68 which leads to package
build failure:

../../../testsuite/reftests/gtk-reftest.c: In function ‘log_writer’:
../../../testsuite/reftests/gtk-reftest.c:537:7: warning: implicit declaration of function ‘g_log_writer_default_would_drop’; did you mean ‘g_log_writer_default’? [-Wimplicit-function-declaration]
  537 |  if (!g_log_writer_default_would_drop (log_level, NULL))
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       g_log_writer_default
../../../testsuite/reftests/gtk-reftest.c:537:7: warning: nested extern declaration of ‘g_log_writer_default_would_drop’ [-Wnested-externs]

3 years agoMerge version 4.6.4+ds-3+rpi1 and 4.6.5+ds-1 to produce 4.6.5+ds-1+rpi1 archive/raspbian/4.6.5+ds-1+rpi1 raspbian/4.6.5+ds-1+rpi1
Raspbian automatic forward porter [Tue, 14 Jun 2022 13:48:34 +0000 (14:48 +0100)]
Merge version 4.6.4+ds-3+rpi1 and 4.6.5+ds-1 to produce 4.6.5+ds-1+rpi1

3 years agoUpdate Turkish translation
Sabri Ünal [Fri, 10 Jun 2022 05:53:37 +0000 (05:53 +0000)]
Update Turkish translation

3 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Thu, 9 Jun 2022 23:44:08 +0000 (23:44 +0000)]
Update Brazilian Portuguese translation

3 years agoMerge branch 'hc-icontheme-for-4-6' into 'gtk-4-6'
Matthias Clasen [Wed, 8 Jun 2022 18:48:15 +0000 (18:48 +0000)]
Merge branch 'hc-icontheme-for-4-6' into 'gtk-4-6'

Don't use the HighContrast icon theme

See merge request GNOME/gtk!4805

3 years agowayland/display: Don't force HighContrast icon theme
Florian Müllner [Tue, 7 Jun 2022 17:30:10 +0000 (19:30 +0200)]
wayland/display: Don't force HighContrast icon theme

The theme is considered deprecated in favor of symbolic icons from
the regular theme.

Cherry-picked from main.

3 years agoMerge branch 'builtin-icontheme-fix-for-4-6' into 'gtk-4-6'
Matthias Clasen [Mon, 6 Jun 2022 22:25:07 +0000 (22:25 +0000)]
Merge branch 'builtin-icontheme-fix-for-4-6' into 'gtk-4-6'

Add scalable directories to the builtin hicolor index

See merge request GNOME/gtk!4797

3 years agoAdd more directories to the builtin hicolor index
Matthias Clasen [Thu, 2 Jun 2022 10:38:12 +0000 (06:38 -0400)]
Add more directories to the builtin hicolor index

We haven't had any scalable directories in this list.
Add some. Since we seem to have settled on including
just actions and status as subdirectories for each
size, add scalable/actions and scalable/status.

Fixes: #4960
3 years agoUpdate Russian translation
Aleksandr Melman [Sun, 5 Jun 2022 12:33:06 +0000 (12:33 +0000)]
Update Russian translation

3 years agoMerge branch 'wip/carlosg/activation-roundtrip-fix-4.6' into 'gtk-4-6'
Carlos Garnacho [Fri, 3 Jun 2022 11:20:39 +0000 (11:20 +0000)]
Merge branch 'wip/carlosg/activation-roundtrip-fix-4.6' into 'gtk-4-6'

gdk/wayland: Dispatch GdkAppLaunchContext activation token in its own queue

See merge request GNOME/gtk!4791

3 years agogdk/wayland: Check the GdkSurface wl_surface before using it for activation
Carlos Garnacho [Thu, 2 Jun 2022 21:05:39 +0000 (23:05 +0200)]
gdk/wayland: Check the GdkSurface wl_surface before using it for activation

Double check the GdkSurface has a wl_surface before using it as the activation
token source, since we cannot use NULL surfaces here.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1862
(cherry-picked from commit 4b41d4f78ce71b60f0d51837cd1b6a1b346d679d)

3 years agogdk/wayland: Dispatch GdkAppLaunchContext activation token in its own queue
Carlos Garnacho [Thu, 2 Jun 2022 21:04:40 +0000 (23:04 +0200)]
gdk/wayland: Dispatch GdkAppLaunchContext activation token in its own queue

Use a separate queue to dispatch the token object exclusively, just like we
do on the GdkSurface activation paths.

(cherry-picked from commit fb68600d88d4d334f7da7d079b106a1ef14503a6)

3 years agoMerge branch 'fix-gtk-stack-get-page-annotation' into 'gtk-4-6'
Matthias Clasen [Thu, 2 Jun 2022 10:40:49 +0000 (10:40 +0000)]
Merge branch 'fix-gtk-stack-get-page-annotation' into 'gtk-4-6'

Fix introspection annotation for gtk_stack_get_page

See merge request GNOME/gtk!4783

3 years agod/tests/installed-tests: Fail if no tests are found
Simon McVittie [Sun, 29 May 2022 12:48:55 +0000 (13:48 +0100)]
d/tests/installed-tests: Fail if no tests are found

3 years agod/tests/installed-tests: Fail on unset variable references
Simon McVittie [Sun, 29 May 2022 12:47:51 +0000 (13:47 +0100)]
d/tests/installed-tests: Fail on unset variable references

3 years agoMerge branch 'fix-ui-file-translation' into 'gtk-4-6'
Matthias Clasen [Wed, 1 Jun 2022 23:00:14 +0000 (23:00 +0000)]
Merge branch 'fix-ui-file-translation' into 'gtk-4-6'

Fix ui files to work for translations

See merge request GNOME/gtk!4784

3 years agoFix ui files to work for translations
Matthias Clasen [Wed, 1 Jun 2022 18:01:21 +0000 (14:01 -0400)]
Fix ui files to work for translations

We need to keep using translatable="yes", since
that is what the installed its file is looking
for.

Fixes: #4957
3 years agoreleasing package gtk4 version 4.6.5+ds-1
Jeremy Bicha [Wed, 1 Jun 2022 13:06:08 +0000 (09:06 -0400)]
releasing package gtk4 version 4.6.5+ds-1

3 years agoRecord gtk4 (4.6.5+ds-1) in archive suite sid
Jeremy Bicha [Wed, 1 Jun 2022 13:05:45 +0000 (14:05 +0100)]
Record gtk4 (4.6.5+ds-1) in archive suite sid

3 years agoMerge gtk4 (4.6.5+ds-1) import into refs/heads/workingbranch
Jeremy Bicha [Wed, 1 Jun 2022 13:05:45 +0000 (14:05 +0100)]
Merge gtk4 (4.6.5+ds-1) import into refs/heads/workingbranch

3 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

3 years agoSkip some known-failing tests on mips-family architectures
Simon McVittie [Thu, 2 Sep 2021 22:31:54 +0000 (23:31 +0100)]
Skip some known-failing tests on mips-family architectures

Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-some-known-failing-tests-on-mips-family-architecture.patch

3 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: Name reftests-Allow-minor-differences-to-be-tolerated.patch

3 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: Name reftest_compare_surfaces-Report-how-much-the-images-diffe.patch

3 years agogtk4 (4.6.5+ds-1) unstable; urgency=medium
Jeremy Bicha [Wed, 1 Jun 2022 13:05:45 +0000 (14:05 +0100)]
gtk4 (4.6.5+ds-1) unstable; urgency=medium

  [ Jeremy Bicha ]
  * New upstream release (LP: #1976500)
    - Fixes file chooser getting bigger each time it opens (LP: #1971112)
  * Drop 2 patches applied in new release

  [ Laurent Bigonville ]
  * debian/control.in: Disable librsvg BD on architectures where it's not
    building

[dgit import unpatched gtk4 4.6.5+ds-1]

3 years agoImport gtk4_4.6.5+ds.orig.tar.xz
Jeremy Bicha [Wed, 1 Jun 2022 13:05:45 +0000 (14:05 +0100)]
Import gtk4_4.6.5+ds.orig.tar.xz

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

3 years agoImport gtk4_4.6.5+ds-1.debian.tar.xz
Jeremy Bicha [Wed, 1 Jun 2022 13:05:45 +0000 (14:05 +0100)]
Import gtk4_4.6.5+ds-1.debian.tar.xz

[dgit import tarball gtk4 4.6.5+ds-1 gtk4_4.6.5+ds-1.debian.tar.xz]

3 years agoDrop 2 patches applied in new release
Jeremy Bicha [Wed, 1 Jun 2022 12:36:52 +0000 (08:36 -0400)]
Drop 2 patches applied in new release

3 years agoNew upstream release
Jeremy Bicha [Wed, 1 Jun 2022 12:29:47 +0000 (08:29 -0400)]
New upstream release

3 years agoUpdate upstream source from tag 'upstream/4.6.5+ds'
Jeremy Bicha [Wed, 1 Jun 2022 12:29:47 +0000 (08:29 -0400)]
Update upstream source from tag 'upstream/4.6.5+ds'

Update to upstream version '4.6.5+ds'
with Debian dir 302760626b06023473a974fb7cec78a6b1d059db

3 years agoNew upstream version 4.6.5+ds
Jeremy Bicha [Wed, 1 Jun 2022 12:29:05 +0000 (08:29 -0400)]
New upstream version 4.6.5+ds

3 years agoFix introspection annotation for gtk_stack_get_page
Hugo Parente Lima [Tue, 31 May 2022 23:49:58 +0000 (20:49 -0300)]
Fix introspection annotation for gtk_stack_get_page

Annotate gtk_stack_get_page return value as nullable.

Fixes #4958

3 years agoUpdate debian/changelog
Laurent Bigonville [Tue, 31 May 2022 13:53:48 +0000 (15:53 +0200)]
Update debian/changelog

3 years ago4.6.5
Matthias Clasen [Fri, 27 May 2022 12:20:10 +0000 (08:20 -0400)]
4.6.5

3 years agoMerge branch 'gtk-4-6-backports' into 'gtk-4-6'
Matthias Clasen [Mon, 30 May 2022 11:22:32 +0000 (11:22 +0000)]
Merge branch 'gtk-4-6-backports' into 'gtk-4-6'

Drop the quit-mnemonic reftest

See merge request GNOME/gtk!4775

3 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 29 May 2022 19:39:41 +0000 (22:39 +0300)]
Updated Lithuanian translation

3 years agotestsuite: Add tests for label overdraw
Benjamin Otte [Mon, 16 May 2022 20:26:09 +0000 (22:26 +0200)]
testsuite: Add tests for label overdraw

This brings back a subset of what quit-mnemonic.ui tested for, but
trying a lot harder to trigger the label overdrawing its allocation,
which will cause the text to be cut off when clipping is happening.

It should not be an issue at all with GTK4, but keeping that test around
is a good idea.

3 years agoDrop the quit-mnemonic reftest
Matthias Clasen [Sat, 14 May 2022 16:52:40 +0000 (12:52 -0400)]
Drop the quit-mnemonic reftest

I can't quite figure out what this test was meant
to test, and how to make it do so in a way that
does not fall afoul of rendering issues in the GL
renderer and rounding differences in pango.

Can't win with reftests.

3 years agoMerge branch 'backports-for-4-6' into 'gtk-4-6'
Matthias Clasen [Sat, 28 May 2022 15:59:03 +0000 (15:59 +0000)]
Merge branch 'backports-for-4-6' into 'gtk-4-6'

Avoid g_log_set_writer_func in tests

See merge request GNOME/gtk!4773

3 years agoAvoid g_log_set_writer_func in tests
Matthias Clasen [Sat, 28 May 2022 14:17:47 +0000 (10:17 -0400)]
Avoid g_log_set_writer_func in tests

It is not usable anymore since GLib 2.72.

3 years agobroadway: Fix gcc 12 complaining
Benjamin Otte [Sat, 14 May 2022 14:53:22 +0000 (16:53 +0200)]
broadway: Fix gcc 12 complaining

3 years agoMerge branch 'wayland-cursor-scale2-for-4-6' into 'gtk-4-6'
Matthias Clasen [Fri, 27 May 2022 17:37:53 +0000 (17:37 +0000)]
Merge branch 'wayland-cursor-scale2-for-4-6' into 'gtk-4-6'

wayland: scale cursors to the right size

See merge request GNOME/gtk!4767

3 years agowayland: scale cursors to the right size
Matthias Clasen [Fri, 27 May 2022 14:10:27 +0000 (10:10 -0400)]
wayland: scale cursors to the right size

When loading cursors at scale, we expect the
cursor images to have a size of scale * size.
If we don't find such images, load them at their
unscaled size and scale them up ourselves.

Without this, cursors will appear in unexpected
sizes depending on scales and themes.

Related: #4746

3 years agodebian/control.in: Disable librsvg BD on architectures where it's not building
Laurent Bigonville [Mon, 7 Mar 2022 10:02:09 +0000 (11:02 +0100)]
debian/control.in: Disable librsvg BD on architectures where it's not building

librsvg requires rust to be supported, but it's not available on all
architectures

3 years agoMerge branch 'stackpage-fix-for-4-6' into 'gtk-4-6'
Matthias Clasen [Fri, 27 May 2022 12:01:18 +0000 (12:01 +0000)]
Merge branch 'stackpage-fix-for-4-6' into 'gtk-4-6'

realize stackpage accessible parent when needed

See merge request GNOME/gtk!4763

3 years agoMerge branch 'blink-assertion-for-4-6' into 'gtk-4-6'
Matthias Clasen [Fri, 27 May 2022 11:48:41 +0000 (11:48 +0000)]
Merge branch 'blink-assertion-for-4-6' into 'gtk-4-6'

Remove an assertion that we hit

See merge request GNOME/gtk!4764

3 years agoMerge branch 'wayland-cursor-scale-for-4-6' into 'gtk-4-6'
Matthias Clasen [Fri, 27 May 2022 11:48:21 +0000 (11:48 +0000)]
Merge branch 'wayland-cursor-scale-for-4-6' into 'gtk-4-6'

wayland: Sanity check cursor image size

See merge request GNOME/gtk!4762

3 years agoa11y: Realize GtkStackPage parent context before trying to get a ref
Sebastian Keller [Wed, 25 May 2022 12:56:05 +0000 (14:56 +0200)]
a11y: Realize GtkStackPage parent context before trying to get a ref

If a context is not realized, calling gtk_at_spi_context_to_ref() will
return a null ref, because its path has not been initialized yet. This
was already done for all other cases in get_parent_context_ref(), but
was missing for the GtkStackPage case.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4944
3 years agoRemove an assertion that we hit
Matthias Clasen [Mon, 23 May 2022 12:28:00 +0000 (08:28 -0400)]
Remove an assertion that we hit

It appears that we mess up accounting for blinking
cursors sometimes, and can hit blink_cb when there
is a nonempty selection.

Instead of asserting, warn and stop blinking.

Related: #4767

3 years agowayland: Make cursors have the right size
Matthias Clasen [Fri, 27 May 2022 02:23:31 +0000 (22:23 -0400)]
wayland: Make cursors have the right size

The Wayland protocol requires that width and height
of cursor surfaces is an integer multiple of the
surface scale. Make it so.

Fixes: #4746
3 years agowayland: Sanity check cursor image size
Matthias Clasen [Fri, 27 May 2022 02:28:57 +0000 (22:28 -0400)]
wayland: Sanity check cursor image size

On Wayland it is a protocol violation to upload buffers with
dimensions that are not an integer multiple of the buffer scale.

Until recently, Mutter did not enforce this. When it started
doing so, some users started seeing crashes in GTK apps because the
cursor theme ended up with e.g. a 15x16 pixel image at scale of 2.

Add a small sanity check for this case.

3 years agoUpdate German translation
Christian Kirbach [Thu, 26 May 2022 20:16:33 +0000 (20:16 +0000)]
Update German translation

3 years agoUpdate docs/reference/gdk/gdk4-x11.toml.in
Manuel Zabelt [Tue, 24 May 2022 13:37:43 +0000 (13:37 +0000)]
Update docs/reference/gdk/gdk4-x11.toml.in

3 years agoGDK is LGPL-2.1-or-later not GPL-2.1-or-later, right?
Manuel Zabelt [Tue, 24 May 2022 13:36:07 +0000 (13:36 +0000)]
GDK is LGPL-2.1-or-later not GPL-2.1-or-later, right?

3 years agobuild: fix sysprof default options
Christian Hergert [Thu, 26 May 2022 05:52:34 +0000 (22:52 -0700)]
build: fix sysprof default options

Sysprof just recently cleaned up it's meson_options.txt and this makes
the tracking of the master branch match the new values.

3 years agoMerge branch 'cherry-pick-21349009' into 'gtk-4-6'
Benjamin Otte [Thu, 26 May 2022 12:17:50 +0000 (12:17 +0000)]
Merge branch 'cherry-pick-21349009' into 'gtk-4-6'

x11: Always update shadow size

See merge request GNOME/gtk!4760

3 years agox11: Always update shadow size
Benjamin Otte [Thu, 26 May 2022 02:36:14 +0000 (04:36 +0200)]
x11: Always update shadow size

Not updating shadow size unconditionally would lead to shadow size not
being set on map, which would lead mutter to think that we are a Window
without extents and then become confused when we suddenly set some.

Make sure that doesn't happen by always having shadows set on map, just
like GTK3.

Fixes #4136

(cherry picked from commit 213490099b7d24664ac635f25c9cf224d6a3e702)

3 years agoUpdate German translation
Christian Kirbach [Sun, 22 May 2022 10:41:16 +0000 (10:41 +0000)]
Update German translation

3 years agoMerge gtk4 (4.6.4+ds-3+rpi1) import into refs/heads/workingbranch
Raspbian forward porter [Thu, 19 May 2022 13:23:56 +0000 (14:23 +0100)]
Merge gtk4 (4.6.4+ds-3+rpi1) import into refs/heads/workingbranch

3 years agoDisable a couple of faliing tests in Raspbian.
Peter Michael Green [Thu, 19 May 2022 13:23:56 +0000 (14:23 +0100)]
Disable a couple of faliing tests in Raspbian.

Last-Update: 2021-09-07

Gbp-Pq: Name disable-tests-raspbian.patch

3 years agoGtkFileChooserWidget: Propagate keys from external entry to fcwidget at the BUBBLE...
Luca Bacci [Fri, 13 May 2022 10:28:25 +0000 (12:28 +0200)]
GtkFileChooserWidget: Propagate keys from external entry to fcwidget at the BUBBLE phase

Now that we use event controllers we can forward keybindings from the
external entry to the filechooserwidget at the bubble phase.

Fixes #4905

References:
 * commit 1fb075dbca911d4a61e7ebbf9fc040cd697f4d83
 * commit 686116ba615f989610a6b78e84870555dbf5106b
(cherry picked from commit 40709245adc965e3501c6324d7a51536181349d2)

Gbp-Pq: Name GtkFileChooserWidget-Propagate-keys-from-external-entry-t.patch