Commit Graph

54602 Commits

Author SHA1 Message Date
409cb82ded releasing package gtk+3.0 version 3.24.33-2 2022-05-09 16:07:34 -04:00
2ab49ba4e7 Cherry-pick gtk-3-24 commits needed for mutter 42.1 2022-05-09 15:21:32 -04:00
3c721c5a80 quartz: drop beam sync penalty code
Now that we have a frame clock in place, we should be able to drop
the beam-sync penalty prevention code as we should be aligning our
draws with CVDisplayLink.
Originally by Christian Hergert <chergert@redhat.com>, flushWindow
corrections and improvements by John Ralls.
2022-05-05 16:19:02 -07:00
0c439e4b83 quartz: squash compiler warning about enums
We don’t care about the other enums, fine to squash the warning.
2022-05-05 16:08:54 -07:00
b72e4437a2 quartz: Clean up two macOS deprecation warnings. 2022-05-05 16:07:47 -07:00
acc1eb917b Quartz: Don't crash trying to release a NULL CGContext. 2022-05-05 16:04:42 -07:00
01edbfb976 Merge branch '3-24-build-with-array-bounds' into 'gtk-3-24'
gtkimagedefinition: Check array bounds

See merge request GNOME/gtk!4677
2022-05-03 17:47:43 +00:00
75beff2e13 Merge branch 'wip/carlosg/im-wayland-backports-3.24' into 'gtk-3-24'
gtk/imwayland: Use serial to control outbound messages

See merge request GNOME/gtk!4682
2022-05-03 16:36:10 +00:00
3e4c9b1f04 Merge branch 'wip/another-randr-error-trap' into 'gtk-3-24'
[3.24] x11: Trap errors happening when getting output properties

See merge request GNOME/gtk!4680
2022-05-03 00:46:32 +00:00
5321fa25a5 imcontextwayland: Ignore preedit updates from NULL to NULL
If we get consecutive preedit string updates that announce a NULL
string, we still do end up issuing ::preedit-changed with those.
Ignore changes from NULL to NULL, it is the other combinations which
must issue this signal.
2022-05-02 23:34:09 +02:00
49b6410c26 imwayland: Do not defer commit() after set_surrounding_text()
For reasons that only apply to the old serial handling, asking for
the surrounding after IM changes resulted in lazy handling of
commit() afterwards.

With the recent interpretation of serials, this problem became more
apparent, since it is in fact very likely that the last interaction
step after an IM change is notifying of the changed surrounding
text after the IM change was applied.

Make handling of surrounding text similar to caret position changes,
always commit() after the state change, but skip through non-changes.

This makes the compositor state fully up-to-date after an IM change.

(cherry-picked from commit eb7c78aa4896b1d36fa09a3e68c942730b233f74)
2022-05-02 23:34:09 +02:00
802a748e5b gtk/imwayland: Use serial to control outbound messages
Following the text-input protocol changes at
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/115,
use the serial number to have the client push changes to the
zwp_text_input_v3 object only after compositor/client states match.

This specifically is more lenient to compositors pushing multiple
.done events ahead of the client replying to them.

(cherry-picked from commit f108f053d4c84dcdedce005a3491cbd503092185)

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4853
2022-05-02 23:33:37 +02:00
9addb14a83 x11: Trap errors happening when getting output properties
This is to avoid getting X11 errors (thus aborting/exiting with a
failure) during rapid hotplugs, which may happen during e.g. CI testing.
2022-05-02 16:49:23 +02:00
54d319bc32 gtkimagedefinition: Extend commit b38266c0
Similarly, uses casts in `gtk_image_definition_unref()`. Compilation
succeeds without them, unlike in `gtk_image_definition_ref()`, because
`gtk_image_definition_unref()` is not called internally, unlike
`gtk_image_definition_ref()`. But the build would fail if some function
defined in the module were changed in the future to call
`gtk_image_definition_unref()`, and we can future-proof it now. This
also removes an inconsistency in how we access the members of the union.
2022-04-30 13:09:04 -04:00
a5d208adaf gtkimagedefinition: Check array bounds
`jhbuild build gtk+-3` with GCC 12 fails with:
```
In function ‘gtk_image_definition_ref’,
    inlined from ‘gtk_image_definition_new_empty’
    at ../../../../jhbuild/checkout/gtk+-3/gtk/gtkimagedefinition.c:107:10:
../../../../jhbuild/checkout/gtk+-3/gtk/gtkimagedefinition.c:241:13: error:
    array subscript ‘GtkImageDefinition {aka union _GtkImageDefinition}[0]’
    is partly outside array bounds of ‘GtkImageDefinitionEmpty[1]’
    {aka ‘struct _GtkImageDefinitionEmpty[1]’} [-Werror=array-bounds]
  241 |   def->empty.ref_count++;
      |   ~~~~~~~~~~^~~~~~~~~~
../../../../jhbuild/checkout/gtk+-3/gtk/gtkimagedefinition.c:
    In function ‘gtk_image_definition_new_empty’:
../../../../jhbuild/checkout/gtk+-3/gtk/gtkimagedefinition.c:105:34: note:
object ‘empty’ of size 8
  105 |   static GtkImageDefinitionEmpty empty = { GTK_IMAGE_EMPTY, 1 };
      |                                  ^~~~~
```
and many similar errors.

Fix it by casting `GtkImageDefinition` to `GtkImageDefinitionEmpty` or
similar, as appropriate.

Essentially backports 4dcd02e85315f487310e2e01fe9412706a77dc35 from main to gtk-3-24.
2022-04-30 13:08:32 -04:00
a47f81804d Update French translation 2022-04-08 09:19:43 +00:00
f52ceba88c Update French translation 2022-04-08 09:15:30 +00:00
e9170fa136 Revert "Add patch to work around a libX11 bug by disabling a test-case"
libx11/2:1.7.5-1 fixed the bug.

This reverts commit 813289859c.
2022-04-04 11:55:08 +01:00
813289859c Add patch to work around a libX11 bug by disabling a test-case 2022-04-03 14:34:01 +01:00
5ce7a4ab00 Merge branch 'mcatanzaro/set-current-folder-file' into 'gtk-3-24'
gtkfilechooser: add missing nullable annotation

See merge request GNOME/gtk!4610
2022-04-02 19:56:11 +00:00
56ada2f01f gtkfilechooser: add missing nullable annotation 2022-04-01 13:14:00 -05:00
21eb3b2a6c Update Swedish translation 2022-03-27 09:57:22 +00:00
42e4c7f058 Update Dutch translation 2022-03-25 11:01:14 +00:00
7c6a55c686 Update Latvian translation 2022-03-24 20:18:44 +00:00
9accec627f Update Chinese (Taiwan) translation 2022-03-22 14:30:27 +00:00
8445653213 [quartz] Restore setting QUARTZ_RELOCATION in meson build.
This seems to have gotten lost in the migration from autotools.

Closes https://gitlab.gnome.org/GNOME/gtk/-/issues/4769
2022-03-18 11:13:34 -07:00
ce02673b8b Update Norwegian Bokmål translation 2022-03-15 15:15:02 +00:00
90a856a31f Update Italian translation 2022-03-14 14:46:06 +00:00
b833a05583 Update German translation 2022-03-14 01:08:30 +00:00
e003d4c506 Update Kazakh translation 2022-03-12 11:59:29 +00:00
9d1d2f0a66 Merge branch 'wip/jimmac/legacy-icons-gtk3' into 'gtk-3-24'
icons: add legacy icons

See merge request GNOME/gtk!4562
2022-03-11 18:41:44 +00:00
5a0ffbbb45 icons: add legacy icons
- add legacy hicolor icons relied on in testsuite

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4754
2022-03-11 19:16:28 +01:00
6ebbdaddaf Update Hungarian translation 2022-03-11 01:16:17 +00:00
fb5a5cee05 Release to unstable 2022-03-09 11:05:52 +00:00
d112959cc3 New upstream release (no significant changes) 2022-03-09 11:01:32 +00:00
8846106e7f Merge tag 'upstream/3.24.33' into debian/master
Upstream version 3.24.33
2022-03-09 10:59:57 +00:00
7a40770d02 New upstream version 3.24.33 2022-03-08 16:14:27 -05:00
044beca50b Update German translation 2022-03-08 21:03:01 +00:00
166ec3f10b Updated Danish translation 2022-03-08 20:54:36 +01:00
adf486c26e Updated Lithuanian translation 2022-03-07 18:04:28 +02:00
8ff9b2f83f 3.24.33 2022-03-04 21:53:36 -07:00
96abb02a46 debian/patches: Refresh 2022-03-04 10:25:39 +01:00
6720f4d4f7 New upstream release 2022-03-04 10:12:31 +01:00
7213994114 Update upstream source from tag 'upstream/3.24.32'
Update to upstream version '3.24.32'
with Debian dir 8badc747bb
2022-03-04 10:12:30 +01:00
4275e35e67 New upstream version 3.24.32 2022-03-04 10:09:08 +01:00
57fb729c0e 3.24.32 2022-03-03 21:42:12 -07:00
30f9ce09b1 3.24.32 2022-03-03 20:07:01 -07:00
d53b6b858f GDK: Avoid using constructors on Win32
The constructors in GDK only have a meaning for UNIX, on Windows
they are useless.
2022-03-03 21:44:38 +01:00
ef4e1c473c Define DLL_EXPORT and _GDK_EXTERN depending on whether we are building a shared or a static library
Static builds on Windows are only supported in the Meson build
2022-03-03 21:44:31 +01:00
af22c3beae Update Korean translation 2022-03-03 12:42:48 +00:00