gtk+3.0.git
2 years agoMerge branch 'backport-mr-5489' into 'gtk-3-24'
Matthias Clasen [Fri, 10 Feb 2023 11:37:11 +0000 (11:37 +0000)]
Merge branch 'backport-mr-5489' into 'gtk-3-24'

Backport !5489 to gtk-3-24

See merge request GNOME/gtk!5490

2 years agosearchengine: Emit a simple warning when tracker init failed
Gaël Bonithon [Thu, 9 Feb 2023 18:26:47 +0000 (19:26 +0100)]
searchengine: Emit a simple warning when tracker init failed

Failure is allowed by nature of GInitable, and this avoids unnecessary
crashing of programs running with G_DEBUG=fatal-criticals.

(cherry picked from commit 6215b38e645f5047d52e625562efccc1e4f85867)

2 years agosearchengine: Add missing sanity check
Gaël Bonithon [Thu, 9 Feb 2023 18:25:04 +0000 (19:25 +0100)]
searchengine: Add missing sanity check

(cherry picked from commit 41490f96240eb04d85cbe5e1f264ab09ec00b9e0)

2 years agoUpdate POTFILES.in
Piotr Drąg [Sat, 4 Feb 2023 15:14:22 +0000 (16:14 +0100)]
Update POTFILES.in

2 years agoMerge branch 'wip/carlosg/no-legacy-im-3-24' into 'gtk-3-24'
Matthias Clasen [Sat, 4 Feb 2023 12:37:03 +0000 (12:37 +0000)]
Merge branch 'wip/carlosg/no-legacy-im-3-24' into 'gtk-3-24'

input: Drop legacy text input module

See merge request GNOME/gtk!5476

2 years agoinput: Drop legacy text input module
Carlos Garnacho [Sat, 4 Feb 2023 10:13:11 +0000 (11:13 +0100)]
input: Drop legacy text input module

This wayland protocol was merely some scaffolding until the
text_input protocol shaped up and took over. Nowadays this
could only ever help with really old versions of Mutter
(pre 3.28). This can be simply removed nowadays.

2 years agoMerge branch 'gtk-3-24' into 'gtk-3-24'
Matthias Clasen [Sat, 28 Jan 2023 17:46:05 +0000 (17:46 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'

Fixes incorrect grabbing behaviour causing subsequent rejection of input

See merge request GNOME/gtk!5212

2 years agoRemove warning
hrdl [Sat, 28 Jan 2023 13:20:49 +0000 (14:20 +0100)]
Remove warning

2 years agoMerge branch 'revert-5aaa373b' into 'gtk-3-24'
Matthias Clasen [Sat, 28 Jan 2023 12:59:27 +0000 (12:59 +0000)]
Merge branch 'revert-5aaa373b' into 'gtk-3-24'

Revert "Revert "wayland: Add support for gtk_surface1_titlebar_gesture()""

See merge request GNOME/gtk!5452

2 years agoRevert "Revert "wayland: Add support for gtk_surface1_titlebar_gesture()""
Alexander Mikhaylenko [Sat, 28 Jan 2023 09:41:34 +0000 (09:41 +0000)]
Revert "Revert "wayland: Add support for gtk_surface1_titlebar_gesture()""

This reverts commit 5aaa373b70be009c171e890052da0a8872c70992

2 years agoMerge branch 'revert-titlebar-gestures' into 'gtk-3-24'
Matthias Clasen [Sat, 28 Jan 2023 03:03:51 +0000 (03:03 +0000)]
Merge branch 'revert-titlebar-gestures' into 'gtk-3-24'

Revert "wayland: Add support for gtk_surface1_titlebar_gesture()"

See merge request GNOME/gtk!5451

2 years agoRevert "wayland: Add support for gtk_surface1_titlebar_gesture()"
Matthias Clasen [Sat, 28 Jan 2023 02:33:38 +0000 (21:33 -0500)]
Revert "wayland: Add support for gtk_surface1_titlebar_gesture()"

This reverts commit 45ba6e9329798f9d24c9220d0583c1d01c2f8562.

This caused regressions in libhandy-using applications.

Fixes: #5389
2 years agoMerge branch 'fix-xdg-activation-set-surface-gtk-3-24' into 'gtk-3-24'
Carlos Garnacho [Fri, 27 Jan 2023 19:05:39 +0000 (19:05 +0000)]
Merge branch 'fix-xdg-activation-set-surface-gtk-3-24' into 'gtk-3-24'

Backport "gdk/wayland: set requesting surface to xdg-activation" to gtk-3-24

See merge request GNOME/gtk!5398

2 years agoMerge branch 'gl-sync-gtk3' into 'gtk-3-24'
Matthias Clasen [Fri, 27 Jan 2023 16:21:21 +0000 (16:21 +0000)]
Merge branch 'gl-sync-gtk3' into 'gtk-3-24'

gl: Synchronize when calling MakeCurrent

See merge request GNOME/gtk!5448

2 years agogdk/wayland: set requesting surface to xdg-activation
Joan Bruguera [Sun, 4 Dec 2022 22:54:51 +0000 (22:54 +0000)]
gdk/wayland: set requesting surface to xdg-activation

The argument to xdg_activation_token_v1_set_surface is documented to be the
surface requesting the activation, not the surface to be activated, which is
given later when calling xdg_activation_v1_activate.
(c.f. https://gitlab.freedesktop.org/wayland/wayland-protocols/-/commit/36cee4bdbcaf3a75f567315809953b5e21d703da)

Use the same logic as in gdk_wayland_app_launch_context_get_startup_notify_id,
i.e. if we have a surface with focus, set that, otherwise set NULL.

This fixes requesting urgent/focus on wlroots (compositors like Sway, etc.),
which was blocked as the surface requesting the activation didn't have focus.

Backport of: 43c1a433aa0839826451f71029965d8e359a9178

Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
2 years agogl: Synchronize when calling MakeCurrent
Matthias Clasen [Fri, 27 Jan 2023 12:07:36 +0000 (07:07 -0500)]
gl: Synchronize when calling MakeCurrent

When making out GL context current, wait
until the GPU is done with commands from
the previous context.

Fixes: #5517
2 years agoMerge branch 'wip/carlosg/startup-vs-focus-3-24' into 'gtk-3-24'
Matthias Clasen [Wed, 25 Jan 2023 13:09:17 +0000 (13:09 +0000)]
Merge branch 'wip/carlosg/startup-vs-focus-3-24' into 'gtk-3-24'

Consider startup vs focus requests for the Wayland platform [3.24]

See merge request GNOME/gtk!5443

2 years agogtkapplication: Do not call gdk_display_notify_startup_complete()
Carlos Garnacho [Wed, 18 Jan 2023 20:05:28 +0000 (21:05 +0100)]
gtkapplication: Do not call gdk_display_notify_startup_complete()

This should do nothing worthwhile anymore, the X11/Wayland GtkApplication
implementations do already pass the startup ID from the platform_data
via windowing specific APIs, and the application handling the request
via show()/present() should trigger the activation request.

(cherry-picked from commit 3526d8b299becb7cd1e970ea5228a141eae20257)

2 years agogtkwindow: Shuffle gdk_window_set_startup_id() calls
Carlos Garnacho [Wed, 18 Jan 2023 20:01:00 +0000 (21:01 +0100)]
gtkwindow: Shuffle gdk_window_set_startup_id() calls

While this used to be tangential to windows showing or requesting
focus, the xdg-activation Wayland protocol does merge both concepts
together.

But also, for a correct interaction with the compositor, the
toolkit should ideally merge the activation request resulting from
both into the same one, so that the gdk_window_focus() request
replies to the startup token that started the application and
correct focus-stealing prevention/etc happens, instead making up
one just in time for the focus request.

This kind of requires doing things in the right order, a show()
request on the GtkWindow should activate any pending activation
token on the toplevel, a present() request should additionally
create a new token if there was none pending. And
xdg_activation_v1_activate() should happen once on both.

Shuffle the gdk_window_set_startup_id() calls so that this
happens in the right order for Wayland, while making X11 happy
too.

(cherry-picked from commit e8adfa2a889cd45ee0ce0727d7eae0a61fdb7dce)

2 years agogdk/x11: Emit "remove" s-n message from gdk_toplevel_set_startup_id
Carlos Garnacho [Wed, 18 Jan 2023 19:37:01 +0000 (20:37 +0100)]
gdk/x11: Emit "remove" s-n message from gdk_toplevel_set_startup_id

In the way towards deprecating gdk_display_notify_startup_complete(),
make gdk_toplevel_set_startup_id() on X11 perform this piece of messaging
itself. It should be harmless that the message is emitted twice, if
callers do still use that API.

(cherry-picked from commit 7fab1b85adbddff7628e3e916f00677080fb9150)

2 years agogdk/wayland: Perform xdg_activation on gdk_window_set_startup_id
Carlos Garnacho [Wed, 18 Jan 2023 19:03:01 +0000 (20:03 +0100)]
gdk/wayland: Perform xdg_activation on gdk_window_set_startup_id

This call has everything to perform activation as specified by the
xdg_activation protocol, notably a surface to activate as opposed to
gdk_notify_startup_complete().

Make activation happen here, so that the surface gets activated when
its gets a startup ID assigned.

(cherry-picked from commit 5aeabdb3d404579b5cab4fff1642ed116f745a8b)

2 years agogtkwindow: Minor refactor
Carlos Garnacho [Wed, 18 Jan 2023 18:55:31 +0000 (19:55 +0100)]
gtkwindow: Minor refactor

Move the handling of the startup ID to a separate function, since
this will be called from several places.

(cherry-picked from commit 6f01f846dc66a6359a1524ace13377536821dbb0)

2 years agoMerge branch 'fix-unscaled-fallback-icon' into 'gtk-3-24'
Matthias Clasen [Sun, 22 Jan 2023 00:01:07 +0000 (00:01 +0000)]
Merge branch 'fix-unscaled-fallback-icon' into 'gtk-3-24'

Take UI scale into acount when loading "image-missing" fallback

See merge request GNOME/gtk!5438

2 years agoTake UI scale into acount when loading "image-missing" fallback
Brian J. Tarricone [Sat, 21 Jan 2023 20:45:09 +0000 (12:45 -0800)]
Take UI scale into acount when loading "image-missing" fallback

Fallback icons loaded were loading at half size (for a 2x scale) and for
cases where it mattered, were being positioned off-center.

2 years agoUpdate Lithuanian translation
Aurimas Černius [Thu, 19 Jan 2023 21:09:54 +0000 (21:09 +0000)]
Update Lithuanian translation

2 years ago[quartz] GdkWindow, GdkNSView frame and cairo surface same size.
John Ralls [Thu, 19 Jan 2023 18:37:55 +0000 (10:37 -0800)]
[quartz] GdkWindow, GdkNSView frame and cairo surface same size.

The cairo surface must be padded to 4 pixels in order to
transfer correctly to the GPU. The GdkWindow and GdkNSView's
content frame must be the same width, otherwise there's a mismatch
that causes either the GdkWindow to draw wider than the frame or the
frame to be clipped narrower than the title bar.

Fixes #5535.

2 years agogtkcssanimatedstyle: Fix return of new_advance()
Matteo Percivaldi [Fri, 13 Jan 2023 20:19:37 +0000 (15:19 -0500)]
gtkcssanimatedstyle: Fix return of new_advance()

This was causing animation and transition to stop randomly and reset
their state to initial state.

This issue has existed since commit
7b68bdb8316fc1bb96c4a5ad16c1885506131d22.

Closes #4426

2 years agoUpdate Turkish translation
Emin Tufan Çetin [Wed, 11 Jan 2023 06:57:09 +0000 (06:57 +0000)]
Update Turkish translation

2 years agoMerge branch 'win-file-ext-3-24' into 'gtk-3-24'
Matthias Clasen [Sun, 8 Jan 2023 12:57:00 +0000 (12:57 +0000)]
Merge branch 'win-file-ext-3-24' into 'gtk-3-24'

Backport "filechoosernativewin32: Set default extension"

See merge request GNOME/gtk!5403

2 years agofilechoosernativewin32: Set default extension
robxnano [Sat, 26 Nov 2022 14:09:40 +0000 (14:09 +0000)]
filechoosernativewin32: Set default extension

Setting the default extension before a filter is selected allows
the IFileDialog to automatically change the extension when the
filter is changed. See:
https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifiledialog-setdefaultextension

2 years ago[quartz] Fix typo to call function.
John Ralls [Fri, 6 Jan 2023 18:13:02 +0000 (10:13 -0800)]
[quartz] Fix typo to call function.

2 years agoUpdate Abkhazian translation
Nart Tlisha [Thu, 5 Jan 2023 12:36:09 +0000 (12:36 +0000)]
Update Abkhazian translation

2 years agoUpdate Abkhazian translation
Nart Tlisha [Thu, 5 Jan 2023 12:24:58 +0000 (12:24 +0000)]
Update Abkhazian translation

2 years agoMerge branch 'fix-4913-for-gtk3' into 'gtk-3-24'
Emmanuele Bassi [Tue, 3 Jan 2023 18:07:17 +0000 (18:07 +0000)]
Merge branch 'fix-4913-for-gtk3' into 'gtk-3-24'

Treat XKB_MOD_NAME_LOGO as super key

See merge request GNOME/gtk!5387

2 years agoTreat XKB_MOD_NAME_LOGO as super key
Thomas Jost [Tue, 3 Jan 2023 16:09:04 +0000 (17:09 +0100)]
Treat XKB_MOD_NAME_LOGO as super key

Loosely based on !5304, which fixes #4913 for GTK3.

2 years agotests: make accel tests easier to debug
Thomas Jost [Tue, 3 Jan 2023 15:58:18 +0000 (16:58 +0100)]
tests: make accel tests easier to debug

2 years agoMerge branch 'gtk-3-24' into 'gtk-3-24'
Matthias Clasen [Tue, 3 Jan 2023 12:29:27 +0000 (12:29 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'

build: Fix build_gir logic

See merge request GNOME/gtk!5371

2 years agoFix build_gir logic
Staudey [Tue, 27 Dec 2022 04:54:52 +0000 (04:54 +0000)]
Fix build_gir logic

2 years ago3.24.36
Matthias Clasen [Thu, 22 Dec 2022 13:25:53 +0000 (08:25 -0500)]
3.24.36

2 years agoRevert "Treat XKB_MOD_NAME_LOGO as super key"
Matthias Clasen [Thu, 22 Dec 2022 13:59:12 +0000 (08:59 -0500)]
Revert "Treat XKB_MOD_NAME_LOGO as super key"

This reverts commit 3a871c91847a01df3bbfd83006d2fee22e2bc52d.

This broke one of our tests.

2 years agoMerge branch 'gtk-3-24-clipboard_eol' into 'gtk-3-24'
Matthias Clasen [Thu, 22 Dec 2022 13:31:26 +0000 (13:31 +0000)]
Merge branch 'gtk-3-24-clipboard_eol' into 'gtk-3-24'

clipboard: improve EOL conversion of plain text

See merge request GNOME/gtk!5366

2 years agoclipboard: improve EOL conversion of plain text
Ignazio Pillai [Thu, 22 Dec 2022 09:20:20 +0000 (10:20 +0100)]
clipboard: improve EOL conversion of plain text

Handle the case of clipboard text with CR line endings

3 years agoMerge branch 'wip/gtk3-fix-delete-surrounding' into 'gtk-3-24'
Matthias Clasen [Tue, 20 Dec 2022 02:19:39 +0000 (02:19 +0000)]
Merge branch 'wip/gtk3-fix-delete-surrounding' into 'gtk-3-24'

[GTK3] gtkimcontextwayland: Convert byte based offset to char based offset in delete_surrounding_text

See merge request GNOME/gtk!5255

3 years agogtkimcontextwayland: Convert byte based offset to char based offset in delete_surroun...
Alynx Zhou [Thu, 24 Nov 2022 10:35:47 +0000 (18:35 +0800)]
gtkimcontextwayland: Convert byte based offset to char based offset in delete_surrounding_text

ClutterInputFocus/GtkIMContext uses char based offset for
delete_surrounding, however, text_input_v3 uses byte based offset for
it. Currently only GTK with mutter can work correctly via text_input_v3
because they both forget to convert between char based offset and byte
based offset.

This commit fixes it in GTK by converting byte based offset to char
based offset with the UTF-8 encoded surrounding text.

Fixes <https://gitlab.gnome.org/GNOME/gtk/-/issues/4566>.

3 years agoUpdate Persian translation
Danial Behzadi [Wed, 14 Dec 2022 12:32:57 +0000 (12:32 +0000)]
Update Persian translation

3 years agoMerge branch 'revert-cursor-changes-3-24' into 'gtk-3-24'
Matthias Clasen [Wed, 14 Dec 2022 11:04:08 +0000 (11:04 +0000)]
Merge branch 'revert-cursor-changes-3-24' into 'gtk-3-24'

Revert "wayland: Look for cursor themes in $HOME"

See merge request GNOME/gtk!5329

3 years agoRevert "Revert "wayland/cursor: Sanity check cursor image size""
Matthias Clasen [Tue, 13 Dec 2022 23:52:34 +0000 (18:52 -0500)]
Revert "Revert "wayland/cursor: Sanity check cursor image size""

This reverts commit 4432a037429d8f7d272c58747967d82f3bd563b9.

3 years agoRevert "Make wayland load cursors on demand"
Matthias Clasen [Tue, 13 Dec 2022 23:52:29 +0000 (18:52 -0500)]
Revert "Make wayland load cursors on demand"

This reverts commit 66a199806ceb3daa5e2c7d3a5b45a86007cec46a.

3 years agoRevert "wayland: Look for cursor themes in $HOME"
Matthias Clasen [Tue, 13 Dec 2022 23:51:16 +0000 (18:51 -0500)]
Revert "wayland: Look for cursor themes in $HOME"

This reverts commit 3f1536632f682c355d0c3abe1afc80cf975c2cce.

3 years agoMerge branch 'gtk3_fix_chooser_dead_tilde_trigger_location' into 'gtk-3-24'
Matthias Clasen [Tue, 13 Dec 2022 13:00:36 +0000 (13:00 +0000)]
Merge branch 'gtk3_fix_chooser_dead_tilde_trigger_location' into 'gtk-3-24'

Fix open location entry when pressing '~'

See merge request GNOME/gtk!4971

3 years agoMerge branch 'ebassi/no-more-autotools-redux' into 'gtk-3-24'
Matthias Clasen [Tue, 13 Dec 2022 12:10:34 +0000 (12:10 +0000)]
Merge branch 'ebassi/no-more-autotools-redux' into 'gtk-3-24'

Drop the Autotools build

See merge request GNOME/gtk!5299

3 years agoMerge branch 'basename' into 'gtk-3-24'
Emmanuele Bassi [Mon, 12 Dec 2022 13:32:03 +0000 (13:32 +0000)]
Merge branch 'basename' into 'gtk-3-24'

Use @basename@ in enumeration type templates

See merge request GNOME/gtk!5324

3 years agoUse @basename@ in enumeration type templates
Ross Burton [Mon, 12 Dec 2022 13:09:26 +0000 (13:09 +0000)]
Use @basename@ in enumeration type templates

The @filename@ directive will use the full path of the file being parsed
for enumeration types; we should use @basename@, instead, as it improves
the reproducibility of the build by using only the file name.

Backport of 4040f76529bbf6d3310a71df2d37c9d95af83892 from main.

3 years agoMerge branch 'issue5305' into 'gtk-3-24'
Matthias Clasen [Sun, 11 Dec 2022 04:02:14 +0000 (04:02 +0000)]
Merge branch 'issue5305' into 'gtk-3-24'

[quartz] Work around macOS 13 not sending trackingArea events.

See merge request GNOME/gtk!5280

3 years agoMerge branch 'issue5393' into 'gtk-3-24'
Matthias Clasen [Sun, 11 Dec 2022 04:02:00 +0000 (04:02 +0000)]
Merge branch 'issue5393' into 'gtk-3-24'

[quartz] Set GdkQuartzView wantsLayer.

See merge request GNOME/gtk!5309

3 years agoAdd Interlingue translation
Olga Smirnova [Fri, 9 Dec 2022 17:44:15 +0000 (17:44 +0000)]
Add Interlingue translation

3 years agoAdd Interlingue translation
Olga Smirnova [Fri, 9 Dec 2022 17:43:35 +0000 (17:43 +0000)]
Add Interlingue translation

3 years agomeson: Clean up FreeType2 dependency search
Chun-wei Fan [Fri, 9 Dec 2022 04:41:10 +0000 (12:41 +0800)]
meson: Clean up FreeType2 dependency search

Since we are using Meson 0.60.x now, make use of CMake's support for finding
FreeType in addition to pkg-config, which actually looks for FreeType2 via
looking at the headers and .lib's internally, so we don't have to reinvent
the wheel.

Sadly, we don't have similar support for Cairo and HarfBuzz in CMake, so we
have to stick with what we have now, since we still need to support older
HarfBuzz and Cairo versions as we are in a stable release series.

3 years agoREADME.win32.md: Update build instructions
Chun-wei Fan [Fri, 9 Dec 2022 04:08:32 +0000 (12:08 +0800)]
README.win32.md: Update build instructions

Adapt the build instructions to reflect the change to building with
Meson only, and list the dependencies in a clearer list with the additional
tools that are needed to build them with Visual Studio.

Update the list of dependencies and their optional features that are needed to
enable optional features in the GTK build itself.

3 years agoRemove GTK version / interface age macros in config.h
Luca Bacci [Thu, 8 Dec 2022 18:08:27 +0000 (18:08 +0000)]
Remove GTK version / interface age macros in config.h

They are present in gtk/gtkversion.h. This avoids macro redefinition
warnings.

3 years agoRemove config.h.meson
Luca Bacci [Thu, 8 Dec 2022 18:07:21 +0000 (18:07 +0000)]
Remove config.h.meson

Meson can generate a configuration file better than a human can.

3 years ago[quartz] Set GdkQuartzView wantsLayer.
John Ralls [Thu, 8 Dec 2022 18:04:56 +0000 (10:04 -0800)]
[quartz] Set GdkQuartzView wantsLayer.

Apparently wantsUpdateLayer by itself isn't sufficient.
Also #ifdef wantsUpdateLayer for macOS X 10.8 and later; earlier
versions don't provide it.

Fixes #5393

3 years agodocs: Remove the separate commit document
Emmanuele Bassi [Thu, 8 Dec 2022 18:04:05 +0000 (18:04 +0000)]
docs: Remove the separate commit document

It's part of the contribution guide.

3 years agodocs: Remove old, pre-1.0 news file
Emmanuele Bassi [Thu, 8 Dec 2022 18:03:52 +0000 (18:03 +0000)]
docs: Remove old, pre-1.0 news file

3 years agodocs: Remove outdated files
Emmanuele Bassi [Thu, 8 Dec 2022 18:02:39 +0000 (18:02 +0000)]
docs: Remove outdated files

The maintainers are listed in the DOAP file, and the authors are listed
in the commits history.

3 years agodocs: Replace HACKING with a contribution guide
Emmanuele Bassi [Thu, 8 Dec 2022 18:01:55 +0000 (18:01 +0000)]
docs: Replace HACKING with a contribution guide

The HACKING file is woefully out of date.

3 years agodocs: Update the build instructions
Emmanuele Bassi [Thu, 8 Dec 2022 12:25:51 +0000 (12:25 +0000)]
docs: Update the build instructions

3 years agodocs: Update the README
Emmanuele Bassi [Thu, 8 Dec 2022 12:05:33 +0000 (12:05 +0000)]
docs: Update the README

3 years agodocs: Update the installation instructions
Emmanuele Bassi [Thu, 8 Dec 2022 12:00:59 +0000 (12:00 +0000)]
docs: Update the installation instructions

3 years agoMerge branch 'emoji-recent-empty' into 'gtk-3-24'
Matthias Clasen [Thu, 8 Dec 2022 13:10:53 +0000 (13:10 +0000)]
Merge branch 'emoji-recent-empty' into 'gtk-3-24'

emojichooser: Actually disable the recent section

See merge request GNOME/gtk!5307

3 years agoMerge branch 'backport-mr-5088-to-gtk-3-24' into 'gtk-3-24'
Matthias Clasen [Thu, 8 Dec 2022 12:14:55 +0000 (12:14 +0000)]
Merge branch 'backport-mr-5088-to-gtk-3-24' into 'gtk-3-24'

Treat XKB_MOD_NAME_LOGO as super key

See merge request GNOME/gtk!5304

3 years agoemojichooser: Actually disable the recent section
Guido Günther [Wed, 7 Dec 2022 18:26:29 +0000 (19:26 +0100)]
emojichooser: Actually disable the recent section

The loop sets empty = FALSE when there are emojis but for that
to work we need to initialize the value to TRUE initially.

Fixes: 7928532bc5c33b2c6a10bae138ebc6dca1843cb0
(cherry picked from commit 89c816a614db4083e80862b631f4b3e44aa17eae)

3 years agoMerge branch 'wip/carlosg/convert-mimetypes-to-atoms' into 'gtk-3-24'
Matthias Clasen [Thu, 8 Dec 2022 12:10:30 +0000 (12:10 +0000)]
Merge branch 'wip/carlosg/convert-mimetypes-to-atoms' into 'gtk-3-24'

gdk/wayland: Convert selection mimetypes back to atoms, if needed

See merge request GNOME/gtk!5300

3 years agobuild: Remove the Autotools build
Emmanuele Bassi [Tue, 6 Dec 2022 22:49:42 +0000 (22:49 +0000)]
build: Remove the Autotools build

CI and downstream packagers have been using the Meson build for a while
now, and we checked that it's idempotent to the Autotools build.

Having two build systems in tree doesn't make maintaining and releasing
GTK any easier, even if it's the stable/frozen branch.

3 years agobuild: Conditionally generate introspection
Emmanuele Bassi [Thu, 8 Dec 2022 11:35:50 +0000 (11:35 +0000)]
build: Conditionally generate introspection

We not only want to use the "introspection" option: we also want to
avoid building when cross-compiling, and if the introspection tools
are not available.

GTK's main development branch already has a fairly well tested check, so
let's backport it.

3 years agoTreat XKB_MOD_NAME_LOGO as super key
Po Lu [Mon, 19 Sep 2022 07:57:58 +0000 (15:57 +0800)]
Treat XKB_MOD_NAME_LOGO as super key

Based on !5088. See also #4913.

3 years agogdk/wayland: Convert selection mimetypes back to atoms, if needed
Carlos Garnacho [Tue, 6 Dec 2022 23:35:37 +0000 (00:35 +0100)]
gdk/wayland: Convert selection mimetypes back to atoms, if needed

Commit 0c1ea922197 took care of converting STRING/UTF8_STRING to mimetype
strings when letting selection targets known to the outer world through
wl_data_source/zwp_primary_selection_source_v1, but it missed the conversion
of those mimetypes back to the old atom strings, depending on the
application, the mimetype counterparts might not be known or handled, so
requests to paste from this app could go ignored.

Fixes: 0c1ea922197 - wayland: Translate STRING/UTF8_STRING selection atoms to mimetypes
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5397
3 years agoci: Dist using Meson
Emmanuele Bassi [Tue, 6 Dec 2022 22:21:43 +0000 (22:21 +0000)]
ci: Dist using Meson

3 years agodocs: Update installation instructions
Emmanuele Bassi [Tue, 6 Dec 2022 22:13:23 +0000 (22:13 +0000)]
docs: Update installation instructions

Mention Meson.

3 years agox11: Remove unused header file
Emmanuele Bassi [Tue, 6 Dec 2022 22:01:51 +0000 (22:01 +0000)]
x11: Remove unused header file

The XInput 1.x support was removed 10 years ago.

3 years agobroadway: Remove unused file
Emmanuele Bassi [Tue, 6 Dec 2022 21:57:21 +0000 (21:57 +0000)]
broadway: Remove unused file

3 years agoUse the right type when calling GtkWidget methods
Emmanuele Bassi [Tue, 6 Dec 2022 21:49:22 +0000 (21:49 +0000)]
Use the right type when calling GtkWidget methods

Let's avoid complaints from the compiler.

3 years agoAdd missing annotation for GdkAtom
Emmanuele Bassi [Tue, 6 Dec 2022 21:47:25 +0000 (21:47 +0000)]
Add missing annotation for GdkAtom

3 years agoUse the same argument name in the header and source files
Emmanuele Bassi [Tue, 6 Dec 2022 21:45:33 +0000 (21:45 +0000)]
Use the same argument name in the header and source files

They must match so the introspection scanner can do its job.

3 years agoRemove unnecessary gitignore file
Emmanuele Bassi [Tue, 6 Dec 2022 21:42:55 +0000 (21:42 +0000)]
Remove unnecessary gitignore file

The .gitignore file is only needed for the Autotools build, and it gets
generated by git.mk, so we don't need to have the file in the
repository.

3 years agowayland: Fix argument's constness
Emmanuele Bassi [Tue, 6 Dec 2022 21:41:29 +0000 (21:41 +0000)]
wayland: Fix argument's constness

The compiler was pointing out we were dropping the const modifier.

3 years agoDrop unnecessary volatile modifier
Emmanuele Bassi [Tue, 6 Dec 2022 21:30:56 +0000 (21:30 +0000)]
Drop unnecessary volatile modifier

It's completely useless, and just generates compiler warnings with
recent GLib versions.

3 years agobuild: Don't dist generated example files with Autotools
Emmanuele Bassi [Tue, 6 Dec 2022 21:29:38 +0000 (21:29 +0000)]
build: Don't dist generated example files with Autotools

The generated resources.c file should not be part of the dist tarball.

3 years agobuild: Drop Meson version checks
Emmanuele Bassi [Tue, 6 Dec 2022 21:15:48 +0000 (21:15 +0000)]
build: Drop Meson version checks

We depend on a new enough version of Meson.

3 years agobuild: Add missing 512 icons to the Autotools build
Emmanuele Bassi [Tue, 6 Dec 2022 21:07:30 +0000 (21:07 +0000)]
build: Add missing 512 icons to the Autotools build

3 years agobuild: Use a recent version of Meson
Emmanuele Bassi [Tue, 6 Dec 2022 20:48:24 +0000 (20:48 +0000)]
build: Use a recent version of Meson

And fix the project name, while we're at it.

3 years agobuild: Add missing argument to add_languages()
Emmanuele Bassi [Tue, 6 Dec 2022 20:47:55 +0000 (20:47 +0000)]
build: Add missing argument to add_languages()

We need to specify whether we want a native compiler or not.

3 years agobuild: Replace deprecated get_pkgconfig_variable()
Emmanuele Bassi [Tue, 6 Dec 2022 20:45:58 +0000 (20:45 +0000)]
build: Replace deprecated get_pkgconfig_variable()

Use get_variable(pkgconfig:...) instead.

3 years agoMerge branch 'backport-mr-5148-to-gtk-3-24' into 'gtk-3-24'
Matthias Clasen [Sat, 3 Dec 2022 23:11:02 +0000 (23:11 +0000)]
Merge branch 'backport-mr-5148-to-gtk-3-24' into 'gtk-3-24'

label: Tweak selection behavior

See merge request GNOME/gtk!5289

3 years agolabel: Tweak selection behavior
Matthias Clasen [Sat, 3 Dec 2022 10:16:50 +0000 (11:16 +0100)]
label: Tweak selection behavior

Arrange for double-click-followed-by-drag to do
select by words, not select-and-dnd. This matches
the behavior in GtkTextView better and feels
intuitive.

Fixes: #2024
3 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 3 Dec 2022 09:44:45 +0000 (09:44 +0000)]
Update Basque translation

3 years agoAdd Abkhazian translation
Nart Tlisha [Fri, 2 Dec 2022 10:50:36 +0000 (10:50 +0000)]
Add Abkhazian translation

3 years agoUpdate Abkhazian translation
Nart Tlisha [Fri, 2 Dec 2022 10:15:27 +0000 (10:15 +0000)]
Update Abkhazian translation

3 years agoMerge branch 'example-links' into 'gtk-3-24'
Matthias Clasen [Wed, 30 Nov 2022 23:35:56 +0000 (23:35 +0000)]
Merge branch 'example-links' into 'gtk-3-24'

Update links to current versions

See merge request GNOME/gtk!5283

3 years agodocs: Use main branch instead of master
Guido Günther [Wed, 30 Nov 2022 08:59:33 +0000 (09:59 +0100)]
docs: Use main branch instead of master

The old name still works but let's use the current name.