Christoph Reiter [Thu, 26 Aug 2021 03:14:18 +0000 (05:14 +0200)]
build: fix implicit-fallthrough errors with clang
The clang build fails due to -Werror=implicit-fallthrough being
on by default and some fallthrough cases not being marked as such.
Use G_GNUC_FALLTHROUGH or duplicate the code in those cases.
Rafał Dzięgiel [Wed, 25 Aug 2021 08:08:44 +0000 (10:08 +0200)]
Fix wrong gettext ITS target
The installed ITS rule filename is "gtk4builder.its". The .loc file
is wrongly pointing to old "gtkbuilder.its" which makes gettext fail
on systems without GTK3 installed.
Emmanuele Bassi [Tue, 24 Aug 2021 00:11:15 +0000 (01:11 +0100)]
Release an extra reference on GtkExpander:child
The child of a GtkExpander is owned directly by the expander whenever
the "expanded" flag is unset.
We are adding an additional reference to the child of an expander when
expander is not expanded.
Additionally, if a GtkExpander is disposed while not expanded, we need
to explicitly release the reference on the child widget that we own.
This reference leak was masked in GTK3 by GtkContainer removing each
child from the parent container by recursively calling
gtk_widget_destroy().
Qiu Wenbo [Mon, 23 Aug 2021 16:24:08 +0000 (00:24 +0800)]
docs: Fix documentation for gtk_icon_view_create_drag_icon
Fixes: #4190
Kalev Lember [Mon, 23 Aug 2021 13:38:46 +0000 (15:38 +0200)]
build: Fix detection for pre-compiled css files
The default theme changed from Adwaita to Default and this tripped up
the logic to detect if the tarball builds contain pre-built css files or
not. Fix this by looking at pre-compiled css files in themes/Default/
instead of themes/Adwaita/.
Benjamin Otte [Sun, 22 Aug 2021 18:49:12 +0000 (18:49 +0000)]
docs: Expand gdk_clipboard_set() docs
Rūdolfs Mazurs [Sun, 31 Oct 2021 14:59:22 +0000 (14:59 +0000)]
Update Latvian translation
Jordi Mas i Hernandez [Fri, 29 Oct 2021 11:45:56 +0000 (11:45 +0000)]
Update Catalan translation
Alexey Rubtsov [Fri, 29 Oct 2021 11:06:26 +0000 (11:06 +0000)]
Update Russian translation
Benjamin Otte [Wed, 27 Oct 2021 01:02:45 +0000 (01:02 +0000)]
Merge branch 'cherry-pick-
ac8c4245' into 'gtk-4-4'
css: Don't throw warnings on broken URL in image css
See merge request GNOME/gtk!4098
Benjamin Otte [Tue, 26 Oct 2021 15:02:56 +0000 (17:02 +0200)]
css: Don't throw warnings on broken URL in image css
If a URL can't be loaded, we might end up with a NULL file. Handle that
case properly by creating an invalid image instead and don't crash or
complain to stderr when files are NULL.
This was broken since
0886ade182f1a958024202d5c20248d57fcdb053
A new reftest has been included. We need a reftest instead of a
CSS parser test, because the error only becomes visible when
compute()ing the actual image.
Fixes #4373
(cherry picked from commit
ac8c4245b2fb2f1fe8e660c4ad2541efb39cf3d6)
Rūdolfs Mazurs [Mon, 25 Oct 2021 16:59:50 +0000 (16:59 +0000)]
Update Latvian translation
Benjamin Otte [Fri, 22 Oct 2021 18:17:42 +0000 (18:17 +0000)]
Merge branch 'cherry-pick-
3c9c7a0e' into 'gtk-4-4'
build: Make sure ifuncs exist when using fp16
See merge request GNOME/gtk!4089
Benjamin Otte [Fri, 22 Oct 2021 14:31:40 +0000 (16:31 +0200)]
build: Make sure ifuncs exist when using fp16
Fixes msys compiles on Windows (and everywhere else hopefully).
Fixes #4285
(cherry picked from commit
3c9c7a0e727eb6380bee29120736dba6da2232a3)
Goran Vidović [Thu, 21 Oct 2021 10:51:24 +0000 (10:51 +0000)]
Update Croatian translation
Matthias Clasen [Tue, 19 Oct 2021 11:36:44 +0000 (11:36 +0000)]
Merge branch 'gtk-4-4nodate' into 'gtk-4-4'
Drop date attribute from our appdata files
See merge request GNOME/gtk!4077
Bernhard M. Wiedemann [Mon, 6 Sep 2021 08:05:31 +0000 (10:05 +0200)]
Drop date attribute from our appdata files
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
This was suggested by Matthias Clasen as an alternative to MR !3929
Benjamin Otte [Sat, 16 Oct 2021 17:04:55 +0000 (17:04 +0000)]
Merge branch 'backport-mr-3930-to-gtk-4-4' into 'gtk-4-4'
Fix DND coordinates on Windows
See merge request GNOME/gtk!4049
Sveinn í Felli [Tue, 12 Oct 2021 22:48:01 +0000 (22:48 +0000)]
Update Icelandic translation
Rafael Fontenelle [Tue, 12 Oct 2021 17:33:41 +0000 (17:33 +0000)]
Update Brazilian Portuguese translation
Benjamin Otte [Mon, 11 Oct 2021 19:47:37 +0000 (19:47 +0000)]
Merge branch 'cherry-pick-
d89e82d4' into 'gtk-4-4'
Merge branch 'wip/otte/for-master' into 'gtk-4-4'
See merge request GNOME/gtk!4055
Benjamin Otte [Mon, 11 Oct 2021 18:36:20 +0000 (18:36 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
x11: Don't try to move destroyed windows
See merge request GNOME/gtk!4054
(cherry picked from commit
d89e82d4a082febfe44d3504786fcab91eab62a3)
f40ce51a x11: Don't try to move destroyed windows
Asier Sarasua Garmendia [Fri, 8 Oct 2021 17:44:18 +0000 (17:44 +0000)]
Update Basque translation
Luca Bacci [Mon, 6 Sep 2021 16:54:30 +0000 (18:54 +0200)]
Fix DND coordinates on Windows
Luca Bacci [Sat, 4 Sep 2021 12:12:54 +0000 (14:12 +0200)]
Make the DND indicator not interfere with the drag and drop operation
Dušan Kazik [Mon, 4 Oct 2021 13:20:03 +0000 (13:20 +0000)]
Update Slovak translation
Asier Sarasua Garmendia [Sun, 3 Oct 2021 07:12:30 +0000 (07:12 +0000)]
Update Basque translation
Daniel Șerbănescu [Thu, 30 Sep 2021 12:40:26 +0000 (12:40 +0000)]
Update Romanian translation
Sveinn í Felli [Wed, 29 Sep 2021 12:04:41 +0000 (12:04 +0000)]
Update Icelandic translation
Kukuh Syafaat [Wed, 29 Sep 2021 05:57:08 +0000 (05:57 +0000)]
Update Indonesian translation
Matthias Clasen [Wed, 29 Sep 2021 00:36:34 +0000 (00:36 +0000)]
Merge branch 'cherry-pick-
d61c71c3' into 'gtk-4-4'
macos: Actually set the vfuncs
See merge request GNOME/gtk!4007
Benjamin Otte [Fri, 24 Sep 2021 20:11:22 +0000 (22:11 +0200)]
macos: Actually set the vfuncs
(cherry picked from commit
d61c71c3780e06cdc13599aa3a334f3124bab276)
Yaron Shahrabani [Tue, 28 Sep 2021 20:27:52 +0000 (20:27 +0000)]
Update Hebrew translation
Daniel Mustieles [Tue, 28 Sep 2021 10:31:04 +0000 (12:31 +0200)]
Updated Spanish translation
Hugo Carvalho [Sun, 26 Sep 2021 19:58:52 +0000 (19:58 +0000)]
Update Portuguese translation
Goran Vidović [Sun, 26 Sep 2021 16:40:30 +0000 (16:40 +0000)]
Update Croatian translation
Goran Vidović [Sun, 26 Sep 2021 16:38:22 +0000 (16:38 +0000)]
Update Croatian translation
Piotr Drąg [Sun, 26 Sep 2021 15:22:36 +0000 (17:22 +0200)]
Update Polish translation
Aurimas Černius [Sun, 26 Sep 2021 14:22:50 +0000 (17:22 +0300)]
Updated Lithuanian translation
Emin Tufan Çetin [Sun, 26 Sep 2021 12:21:46 +0000 (12:21 +0000)]
Update Turkish translation
Matej Urbančič [Sun, 26 Sep 2021 11:03:51 +0000 (11:03 +0000)]
Update Slovenian translation
Мирослав Николић [Sun, 26 Sep 2021 05:51:31 +0000 (05:51 +0000)]
Update Serbian translation
Мирослав Николић [Sun, 26 Sep 2021 05:33:02 +0000 (05:33 +0000)]
Update Serbian translation
Rafael Fontenelle [Sat, 25 Sep 2021 13:57:40 +0000 (13:57 +0000)]
Update Brazilian Portuguese translation
Danial Behzadi [Sat, 25 Sep 2021 10:21:18 +0000 (10:21 +0000)]
Update Persian translation
Charles Monzat [Sat, 25 Sep 2021 07:04:51 +0000 (07:04 +0000)]
Update French translation
Christian Hergert [Thu, 23 Sep 2021 02:41:06 +0000 (19:41 -0700)]
textview: improve undo grouping when overwriting
We want to group in more than one undo group when removing a selection
and replacing it with a new character or characters, unless we're
replacing a single character. In that case, the natural thing is to treat
it as an atomic change.
Christian Hergert [Thu, 23 Sep 2021 00:08:02 +0000 (17:08 -0700)]
texthistory: add barriers after final grouping
We don't want to allow new items to be grouped into a previous action
group after the end_user_action() is called. This ensures that we add a
barrier action in those conditions.
Fixes #4276
Fran Dieguez [Fri, 24 Sep 2021 22:37:55 +0000 (22:37 +0000)]
Update Galician translation
Yuri Chornoivan [Fri, 24 Sep 2021 17:06:11 +0000 (17:06 +0000)]
Update Ukrainian translation
Anders Jonsson [Fri, 24 Sep 2021 14:40:07 +0000 (14:40 +0000)]
Update Swedish translation
Marek Černocký [Fri, 24 Sep 2021 13:23:33 +0000 (15:23 +0200)]
Updated Czech translation
Benjamin Otte [Fri, 24 Sep 2021 12:22:19 +0000 (12:22 +0000)]
Merge branch 'wip/otte/for-4-4' into 'gtk-4-4'
GL: improve intiialization
See merge request GNOME/gtk!3993
Benjamin Otte [Thu, 23 Sep 2021 23:47:03 +0000 (01:47 +0200)]
gdk: Make sure only one GL backend is used
Creative people managed to create an X11 display and a Wayland display
at once, thereby getting EGL and GLX involved in a fight to the death
over the ownership of the glFoo() symbolspace.
A way to force such a fight with available tools here is (on Wayland)
running something like:
GTK_INSPECTOR_DISPLAY=:1 GTK_DEBUG=interactive gtk4-demo
Related: xdg-desktop-portal-gnome#5
Benjamin Otte [Tue, 24 Aug 2021 19:27:49 +0000 (21:27 +0200)]
wayland: Better error on eglGetDisplay() failure
Goals:
1. Provide as much information as possible in the error message, so
users can try to fix their system themselves.
2. Try to formulate the error message in a way that explains that this
is not something GTK can fix, but a lower layer problem.
Related: #4193
Emin Tufan Çetin [Sun, 19 Sep 2021 17:15:24 +0000 (17:15 +0000)]
Update Turkish translation
Matthias Clasen [Fri, 17 Sep 2021 11:21:36 +0000 (11:21 +0000)]
Merge branch 'fix-win32-shader-check' into 'gtk-4-4'
gdkglcontext-win32-wgl.c: Fix Cairo fallback check
See merge request GNOME/gtk!3964
Chun-wei Fan [Fri, 17 Sep 2021 09:08:23 +0000 (17:08 +0800)]
gdkdisplay-win32.c: Don't retry WGL initialization
On Windows, GLES is not that widely available unless one installs wrapper
libraries such as libANGLE, so GLES/EGL support on Windows is used more like
a fallback mode if Desktop OpenGL (WGL) support is inadequate on the system.
Hence, unless one forces WGL or EGL, we will first try to initialize WGL, and
then try to initialize GLES if enabled and if WGL initialization failed, and
then just return whatever the last result we can obtain from these
initialization attempts, since unlike X11 EGL contexts, we do not have
separate modes for WGL except for legacy and non-legacy contexts.
Chun-wei Fan [Fri, 17 Sep 2021 03:09:23 +0000 (11:09 +0800)]
gdkglcontext-win32-wgl.c: Fix Cairo fallback check
We were setting the WGL pixel format in GdkWin32Display too early, so the code
does not bail out correctly when we retry establishing the WGL context.
Fix this by pushing back setting the WGL pixel format only after it passes the
shader availability check.
Should fix issue #4257.
Boyuan Yang [Wed, 15 Sep 2021 18:56:14 +0000 (18:56 +0000)]
Update Chinese (China) translation
Dz Chen [Wed, 15 Sep 2021 15:37:48 +0000 (15:37 +0000)]
Update Chinese (China) translation
Daniel Mustieles [Wed, 15 Sep 2021 06:43:45 +0000 (08:43 +0200)]
Updated Spanish translation
Daniel Mustieles [Wed, 15 Sep 2021 06:29:59 +0000 (08:29 +0200)]
Updated Spanish translation
Alan Mortensen [Mon, 13 Sep 2021 18:48:55 +0000 (20:48 +0200)]
Updated Danish translation of gtk-properties
Alan Mortensen [Mon, 13 Sep 2021 18:48:52 +0000 (20:48 +0200)]
Updated Danish translation
Philipp Kiemle [Sun, 12 Sep 2021 21:48:01 +0000 (21:48 +0000)]
Update German translation
Philipp Kiemle [Sun, 12 Sep 2021 16:27:27 +0000 (16:27 +0000)]
Update German translation
Balázs Meskó [Sun, 12 Sep 2021 05:57:57 +0000 (05:57 +0000)]
Update Hungarian translation
Balázs Meskó [Sat, 11 Sep 2021 23:38:52 +0000 (23:38 +0000)]
Update Hungarian translation
Guillaume Bernard [Sat, 11 Sep 2021 09:41:11 +0000 (09:41 +0000)]
Update French translation
Guillaume Bernard [Sat, 11 Sep 2021 09:36:29 +0000 (09:36 +0000)]
Update French translation
Goran Vidović [Fri, 10 Sep 2021 15:58:48 +0000 (15:58 +0000)]
Update Croatian translation
Goran Vidović [Fri, 10 Sep 2021 15:56:27 +0000 (15:56 +0000)]
Update Croatian translation
Goran Vidović [Fri, 10 Sep 2021 15:43:42 +0000 (15:43 +0000)]
Update Croatian translation
Emin Tufan Çetin [Fri, 10 Sep 2021 06:29:45 +0000 (06:29 +0000)]
Update Turkish translation
Matej Urbančič [Tue, 7 Sep 2021 18:25:03 +0000 (18:25 +0000)]
Update Slovenian translation
Matej Urbančič [Tue, 7 Sep 2021 18:20:01 +0000 (18:20 +0000)]
Update Slovenian translation
Danial Behzadi [Mon, 6 Sep 2021 13:18:07 +0000 (13:18 +0000)]
Update Persian translation
Daniel Șerbănescu [Sun, 5 Sep 2021 18:43:29 +0000 (18:43 +0000)]
Update Romanian translation
Daniel Șerbănescu [Sun, 5 Sep 2021 18:34:20 +0000 (18:34 +0000)]
Update Romanian translation
Anders Jonsson [Sun, 5 Sep 2021 14:11:36 +0000 (14:11 +0000)]
Update Swedish translation
Asier Sarasua Garmendia [Sat, 4 Sep 2021 20:54:26 +0000 (20:54 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Sat, 4 Sep 2021 20:50:17 +0000 (20:50 +0000)]
Update Basque translation
Changwoo Ryu [Sat, 4 Sep 2021 14:55:06 +0000 (14:55 +0000)]
Update Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 08:59:22 +0000 (08:59 +0000)]
Update Korean translation
Anders Jonsson [Fri, 3 Sep 2021 22:59:22 +0000 (22:59 +0000)]
Update Swedish translation
Matthias Clasen [Fri, 3 Sep 2021 00:55:54 +0000 (00:55 +0000)]
Merge branch 'backports-for-4-4' into 'gtk-4-4'
windowhandle: Quiet a compiler warning
See merge request GNOME/gtk!3915
Matthias Clasen [Thu, 2 Sep 2021 23:02:54 +0000 (19:02 -0400)]
Fix build against pango main
Handle (and ignore) new Pango attributes.
Xavier Claessens [Wed, 1 Sep 2021 12:08:43 +0000 (08:08 -0400)]
media: Check for gstreamer verion instead of using cc.links()
This fix error when gstgl_dep comes from a subproject because in that
case it cannot be used in compiler checks.
Matthias Clasen [Tue, 31 Aug 2021 12:41:45 +0000 (08:41 -0400)]
editable: Clarify the docs
Make it clear that your class must have all the editable properties
already before you call the (confusingly named) function
gtk_editable_install_properties.
Matthias Clasen [Mon, 30 Aug 2021 15:01:55 +0000 (11:01 -0400)]
gdk: Make GDK_DEBUG=default-settings unconditional
Our tests use this settings, so we should respect it
in non-debug builds as well.
Simon McVittie [Mon, 30 Aug 2021 09:54:43 +0000 (10:54 +0100)]
compose: Update sequences from libX11 1.7.2
This adds support for sequences like <Compose>,G,u -> capital G with
breve. Previously, only a capital U was accepted for E, G, I and O
(but a lower-case u was accepted for A and U for some reason).
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Mon, 30 Aug 2021 09:48:49 +0000 (10:48 +0100)]
compose: Document how to get compose-parse input from libX11 source
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Mon, 30 Aug 2021 09:13:33 +0000 (10:13 +0100)]
compose: Generate endian-dependent compact Compose data
The GtkComposeTable cache is always in big-endian format and is
byteswapped on load for the more common little-endian CPUs, but
init_builtin_table() in GtkIMContextSimple can't byteswap the built-in
data without copying it, which is undesirable. Pregenerate both big-
and little-endian compose data, and compile the correct flavour into
each build of GTK. This fixes failure of the composetable test when
building for a big-endian architecture such as s390x and (traditional,
big-endian) powerpc.
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4217
Signed-off-by: Simon McVittie <smcv@debian.org>
Benjamin Otte [Mon, 23 Aug 2021 05:06:25 +0000 (07:06 +0200)]
stylecontext: Remove unneeded headers
Benjamin Otte [Mon, 23 Aug 2021 03:55:56 +0000 (05:55 +0200)]
fontbutton: Destroy dialog in unrealize()
This way, we can be sure it's always using the right display.
We can also be sure that it doesn't leak.
Benjamin Otte [Mon, 23 Aug 2021 03:55:32 +0000 (05:55 +0200)]
fontbutton: Make sure the window is on the same display
We don't want the font buttons created by the inspector to run on the
default display.
Benjamin Otte [Sun, 29 Aug 2021 00:47:34 +0000 (02:47 +0200)]
build: Check that introspection is enabled for docs build
Benjamin Otte [Sun, 29 Aug 2021 02:27:58 +0000 (04:27 +0200)]
docs: Fix vfunc references
vfunc references should just use the object name, not the
class/interface/iface name.
Matthias Clasen [Sat, 28 Aug 2021 19:42:30 +0000 (15:42 -0400)]
ngl: Avoid a coordinate overflow
This was showing up as big text selections going
missing sporadically.
Fixes: #4214