Commit Graph

54896 Commits

Author SHA1 Message Date
Matthias Clasen
9811485990 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
2023-01-27 07:09:34 -05:00
Matthias Clasen
b6795f8ff9 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
2023-01-25 13:09:17 +00:00
Carlos Garnacho
79e11bed1a 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)
2023-01-25 11:22:40 +01:00
Carlos Garnacho
2a47038635 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)
2023-01-25 11:22:40 +01:00
Carlos Garnacho
6ccd786a93 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)
2023-01-25 11:22:40 +01:00
Carlos Garnacho
f5a5480fe2 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)
2023-01-25 11:22:40 +01:00
Carlos Garnacho
a067938589 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)
2023-01-25 11:22:40 +01:00
Simon McVittie
06cda1877e Release to unstable 2023-01-24 18:33:58 +00:00
Simon McVittie
32a32274e8 d/rules: Accept minor rendering differences in label-background test
Workaround for GNOME/gtk#5545
2023-01-24 18:33:42 +00:00
Simon McVittie
f95f918550 Update changelog 2023-01-24 18:04:26 +00:00
Simon McVittie
91c075d884 d/patches: Add notes on upstream rejection of !5301 2023-01-24 17:10:12 +00:00
Simon McVittie
dd5be8adc6 Reinstate patches added in 3.24.35-3
I accidentally dropped these while rebasing on 3.24.36.
2023-01-24 16:55:00 +00:00
Matthias Clasen
1a17e71432 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
2023-01-22 00:01:07 +00:00
Brian J. Tarricone
89c7d5fe4b 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.
2023-01-21 12:47:40 -08:00
Aurimas Černius
128cdaa113 Update Lithuanian translation 2023-01-19 21:09:54 +00:00
John Ralls
f60359c183 [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.
2023-01-19 10:37:55 -08:00
Matteo Percivaldi
6a2fb84446 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
7b68bdb831.

Closes #4426
2023-01-13 15:20:01 -05:00
Emin Tufan Çetin
7a9f88ee48 Update Turkish translation 2023-01-11 06:57:09 +00:00
Matthias Clasen
f2a8878570 Merge branch 'win-file-ext-3-24' into 'gtk-3-24'
Backport "filechoosernativewin32: Set default extension"

See merge request GNOME/gtk!5403
2023-01-08 12:57:00 +00:00
robxnano
c1aec7f100
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
2023-01-07 18:21:54 +00:00
John Ralls
10689066e3 [quartz] Fix typo to call function. 2023-01-06 10:13:02 -08:00
Nart Tlisha
a5198dd935 Update Abkhazian translation 2023-01-05 12:36:09 +00:00
Nart Tlisha
459f5537b3 Update Abkhazian translation 2023-01-05 12:24:58 +00:00
Jeremy Bicha
7e9484bd35 Drop patch no longer needed as of 3.24.36
Revert "Add a missing build file from upstream git"

This reverts commit a7bb7c5993.
2023-01-04 16:16:46 -05:00
Emmanuele Bassi
f1471ea033 Merge branch 'fix-4913-for-gtk3' into 'gtk-3-24'
Treat XKB_MOD_NAME_LOGO as super key

See merge request GNOME/gtk!5387
2023-01-03 18:07:17 +00:00
Thomas Jost
0f55e9552f
Treat XKB_MOD_NAME_LOGO as super key
Loosely based on !5304, which fixes #4913 for GTK3.
2023-01-03 17:09:04 +01:00
Thomas Jost
7a41da3a6e
tests: make accel tests easier to debug 2023-01-03 16:58:18 +01:00
Simon McVittie
2ae6c7ca48 Release to unstable 2023-01-03 15:09:46 +00:00
Simon McVittie
c0cbd29ec6 d/rules: Install README.md instead of README 2023-01-03 15:09:32 +00:00
Simon McVittie
e445abe61b d/rules: Stop trying to install AUTHORS, no longer shipped upstream 2023-01-03 14:42:41 +00:00
Simon McVittie
dfa31ce3c1 d/tests, d/run-tests.sh: Copy run-with-display from gtk4
This should make the build-time tests a bit more robust, by using the
-noreset option to avoid a race condition (see #981201).
2023-01-03 12:44:55 +00:00
Simon McVittie
75292bb0de d/copyright: Move standalone license stanzas to the end 2023-01-03 12:43:18 +00:00
Matthias Clasen
8a76236f13 Merge branch 'gtk-3-24' into 'gtk-3-24'
build: Fix build_gir logic

See merge request GNOME/gtk!5371
2023-01-03 12:29:27 +00:00
Simon McVittie
03534082a0 d/copyright: Update 2023-01-03 10:21:04 +00:00
Simon McVittie
bd98211562 d/control.in: Explicitly build-depend on Freetype 2023-01-03 10:17:43 +00:00
Simon McVittie
fb570ac21d d/copyright: Add license for cursor images used in Windows builds 2023-01-03 10:16:30 +00:00
Simon McVittie
5caddaf2e2 d/rules: Remove Autotools remnants
Upstream releases are now built with Meson.
2023-01-03 10:16:12 +00:00
Simon McVittie
ae47feedf0 d/control: Increase Meson build-dependency to 0.60 2023-01-03 10:15:39 +00:00
Simon McVittie
6b93921dcc Drop patches that were applied upstream 2023-01-03 10:01:34 +00:00
Simon McVittie
ef78027cce New upstream release 2023-01-03 09:41:28 +00:00
Simon McVittie
c1bcdb8a39 Update upstream source from tag 'upstream/3.24.36'
Update to upstream version '3.24.36'
with Debian dir bb40b3fcbe
2023-01-03 09:41:28 +00:00
Simon McVittie
46529a472f New upstream version 3.24.36 2023-01-03 09:40:55 +00:00
Staudey
7e4a2a5724 Fix build_gir logic 2022-12-27 04:54:52 +00:00
Matthias Clasen
35516a5e86 3.24.36 2022-12-22 09:01:18 -05:00
Matthias Clasen
feb38ce112 Revert "Treat XKB_MOD_NAME_LOGO as super key"
This reverts commit 3a871c9184.

This broke one of our tests.
2022-12-22 09:00:37 -05:00
Matthias Clasen
6057e2141c Merge branch 'gtk-3-24-clipboard_eol' into 'gtk-3-24'
clipboard: improve EOL conversion of plain text

See merge request GNOME/gtk!5366
2022-12-22 13:31:26 +00:00
Ignazio Pillai
82e8605627 clipboard: improve EOL conversion of plain text
Handle the case of clipboard text with CR line endings
2022-12-22 10:26:34 +01:00
Matthias Clasen
6c70b5a43d 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
2022-12-20 02:19:39 +00:00
Alynx Zhou
9651546b97 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>.
2022-12-20 09:46:52 +08:00
Danial Behzadi
56b8cf501c Update Persian translation 2022-12-14 12:32:57 +00:00