Commit Graph

70772 Commits

Author SHA1 Message Date
Christian Hergert
c08ba636d4 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.
2021-09-24 16:37:59 -07:00
Christian Hergert
f8cd883e0d 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
2021-09-24 16:37:59 -07:00
Fran Dieguez
d198754ce8 Update Galician translation 2021-09-24 22:37:55 +00:00
Yuri Chornoivan
3a0d4d3d13 Update Ukrainian translation 2021-09-24 17:06:11 +00:00
Anders Jonsson
9f393f8a33 Update Swedish translation 2021-09-24 14:40:07 +00:00
Marek Černocký
8b5b02454e Updated Czech translation 2021-09-24 15:23:33 +02:00
Benjamin Otte
6d1233d3a6 Merge branch 'wip/otte/for-4-4' into 'gtk-4-4'
GL: improve intiialization

See merge request GNOME/gtk!3993
2021-09-24 12:22:19 +00:00
Benjamin Otte
21cd0f942e 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
2021-09-24 13:54:17 +02:00
Benjamin Otte
345b06bbbf 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
2021-09-24 13:54:12 +02:00
Emin Tufan Çetin
cbd3d5a4aa Update Turkish translation 2021-09-19 17:15:24 +00:00
Matthias Clasen
7f5cbc2234 Merge branch 'fix-win32-shader-check' into 'gtk-4-4'
gdkglcontext-win32-wgl.c: Fix Cairo fallback check

See merge request GNOME/gtk!3964
2021-09-17 11:21:36 +00:00
Chun-wei Fan
b57e70fdaf 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.
2021-09-17 17:08:23 +08:00
Chun-wei Fan
75aa1a757b 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.
2021-09-17 11:19:30 +08:00
Boyuan Yang
362208523d Update Chinese (China) translation 2021-09-15 18:56:14 +00:00
Dz Chen
dc7dc6285d Update Chinese (China) translation 2021-09-15 15:37:48 +00:00
Daniel Mustieles
f2c92f7e8b Updated Spanish translation 2021-09-15 08:43:45 +02:00
Daniel Mustieles
301e72cb23 Updated Spanish translation 2021-09-15 08:29:59 +02:00
Alan Mortensen
4cbfd49456 Updated Danish translation of gtk-properties 2021-09-13 20:48:55 +02:00
Alan Mortensen
c3cb16126a Updated Danish translation 2021-09-13 20:48:52 +02:00
Philipp Kiemle
9cfa472cde Update German translation 2021-09-12 21:48:01 +00:00
Philipp Kiemle
f4ef0c61a0 Update German translation 2021-09-12 16:27:27 +00:00
Balázs Meskó
fe30ac8e6b Update Hungarian translation 2021-09-12 05:57:57 +00:00
Balázs Meskó
baa4c12322 Update Hungarian translation 2021-09-11 23:38:52 +00:00
Guillaume Bernard
8ffd7e9f87 Update French translation 2021-09-11 09:41:11 +00:00
Guillaume Bernard
f433c543fe Update French translation 2021-09-11 09:36:29 +00:00
Goran Vidović
33e00c9087 Update Croatian translation 2021-09-10 15:58:48 +00:00
Goran Vidović
e507ff96ac Update Croatian translation 2021-09-10 15:56:27 +00:00
Goran Vidović
4b19e5d58d Update Croatian translation 2021-09-10 15:43:42 +00:00
Emin Tufan Çetin
7a6a1c8f32 Update Turkish translation 2021-09-10 06:29:45 +00:00
Matej Urbančič
1742de2f2d Update Slovenian translation 2021-09-07 18:25:03 +00:00
Matej Urbančič
9c8b297223 Update Slovenian translation 2021-09-07 18:20:01 +00:00
Danial Behzadi
462115a57e Update Persian translation 2021-09-06 13:18:07 +00:00
Daniel Șerbănescu
bb72acf9cd Update Romanian translation 2021-09-05 18:43:29 +00:00
Daniel Șerbănescu
63d829bbc1 Update Romanian translation 2021-09-05 18:34:20 +00:00
Anders Jonsson
19af960163 Update Swedish translation 2021-09-05 14:11:36 +00:00
Asier Sarasua Garmendia
0768addbb3 Update Basque translation 2021-09-04 20:54:26 +00:00
Asier Sarasua Garmendia
edbcd7d36e Update Basque translation 2021-09-04 20:50:17 +00:00
Changwoo Ryu
8ae31322a0 Update Korean translation 2021-09-04 14:55:06 +00:00
Changwoo Ryu
0a5af76932 Update Korean translation 2021-09-04 08:59:22 +00:00
Anders Jonsson
2dbcad428a Update Swedish translation 2021-09-03 22:59:22 +00:00
Matthias Clasen
817cfcacce Merge branch 'backports-for-4-4' into 'gtk-4-4'
windowhandle: Quiet a compiler warning

See merge request GNOME/gtk!3915
2021-09-03 00:55:54 +00:00
Matthias Clasen
5053e9917e Fix build against pango main
Handle (and ignore) new Pango attributes.
2021-09-02 19:59:41 -04:00
Xavier Claessens
4f5d959a94 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.
2021-09-02 19:59:41 -04:00
Matthias Clasen
8407ebe1d8 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.
2021-09-02 19:59:41 -04:00
Matthias Clasen
d2efdaba59 gdk: Make GDK_DEBUG=default-settings unconditional
Our tests use this settings, so we should respect it
in non-debug builds as well.
2021-09-02 19:59:41 -04:00
Simon McVittie
da12386faf 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>
2021-09-02 19:59:41 -04:00
Simon McVittie
7f9f097c3d compose: Document how to get compose-parse input from libX11 source
Signed-off-by: Simon McVittie <smcv@debian.org>
2021-09-02 19:59:41 -04:00
Simon McVittie
71f6ba92ee 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>
2021-09-02 19:59:41 -04:00
Benjamin Otte
11c1b97d5c stylecontext: Remove unneeded headers 2021-09-02 19:59:41 -04:00
Benjamin Otte
d36b27cc3a 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.
2021-09-02 19:59:41 -04:00