Carlos Garnacho [Sat, 18 Feb 2023 22:02:22 +0000 (23:02 +0100)]
gdk/x11: Also grab keyboard during XDnD grabs
The drag source must handle events and messaging, this also
includes keyboard handling for accessibility and cancellation.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5604
Matthias Clasen [Sat, 18 Feb 2023 21:10:16 +0000 (21:10 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtksearchentry: Apply header capitalization to the "Clear entry" tooltip
See merge request GNOME/gtk!5532
Automeris naranja [Sun, 12 Feb 2023 20:38:24 +0000 (17:38 -0300)]
gtksearchentry: Apply header capitalization to the "Clear entry" tooltip
HIG advises to use header capitalization in tooltip texts.
https://developer.gnome.org/hig/patterns/feedback/tooltips.html
Matthias Clasen [Sat, 18 Feb 2023 17:21:15 +0000 (17:21 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
securememory: use function checks
Closes #5070
See merge request GNOME/gtk!5531
Matthias Clasen [Sat, 18 Feb 2023 15:00:10 +0000 (10:00 -0500)]
gtk-demo: Fix build without sincos
We are getting into trouble here if
sincos isn't detected but still present
in headers. Avoid that.
Also fix the other copy of gtkgears.c.
Matthias Clasen [Sat, 18 Feb 2023 14:37:36 +0000 (09:37 -0500)]
meson: Consolidate function checks
Put all the function checks in one place.
Remove functions we don't actually use,
and add ones that we have #ifdefs for in
in the code. Also add enough includes to
make these checks actually work.
Fixes: #5070
Matthias Clasen [Sat, 18 Feb 2023 14:34:50 +0000 (09:34 -0500)]
securememory: use function checks
Checking for getpagesize in meson.build is
useless if we don't check the resulting define
in the code. So do that.
Matthias Clasen [Fri, 17 Feb 2023 22:39:04 +0000 (22:39 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
printing: Avoid getrandom
See merge request GNOME/gtk!5530
Matthias Clasen [Fri, 17 Feb 2023 20:40:45 +0000 (15:40 -0500)]
printing: Avoid getrandom
GLib has perfectly serviceable random number
apis, and this breaks the macOs build.
Matthias Clasen [Fri, 17 Feb 2023 19:54:03 +0000 (19:54 +0000)]
Merge branch 'scalebutton-active-since-marker' into 'main'
Add missing `Since` marker to `GtkScaleButton:active`
See merge request GNOME/gtk!5529
Sebastian Dröge [Fri, 17 Feb 2023 17:41:55 +0000 (19:41 +0200)]
Add missing `Since` marker to `GtkScaleButton:active`
Emmanuele Bassi [Fri, 17 Feb 2023 12:55:50 +0000 (12:55 +0000)]
Merge branch 'ebassi/ci-update-v41' into 'main'
ci: Update image
See merge request GNOME/gtk!5528
Emmanuele Bassi [Fri, 17 Feb 2023 11:33:44 +0000 (11:33 +0000)]
ci: Add no-cache option to run-docker.sh script
Use `run-docker.sh build --no-cache` to discard the cached layers if you
need to rebuild the image without modifying the Dockerfile.
Emmanuele Bassi [Fri, 17 Feb 2023 11:33:11 +0000 (11:33 +0000)]
ci: Update image
Refresh the Fedora base (still at 37), and add the Python packaging
module for gi-docgen.
Emmanuele Bassi [Fri, 17 Feb 2023 12:23:36 +0000 (12:23 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
mask: Fix glsl
See merge request GNOME/gtk!5527
Matthias Clasen [Fri, 17 Feb 2023 11:26:42 +0000 (06:26 -0500)]
mask: Fix glsl
Matthias Clasen [Fri, 17 Feb 2023 11:25:06 +0000 (11:25 +0000)]
Merge branch 'wip/fix-mask-modes-regression' into 'main'
wayland/glcontext: Don't call wl_surface.offset on old objects
See merge request GNOME/gtk!5526
Jonas Ådahl [Fri, 17 Feb 2023 11:03:58 +0000 (12:03 +0100)]
wayland: Clean up some dead code
Jonas Ådahl [Fri, 17 Feb 2023 10:59:14 +0000 (11:59 +0100)]
wayland/glcontext: Don't call wl_surface.offset on old objects
The availability of wl_surface.offset depends on the compositor, so we
can't call it unconditionally. Add a version check to so we only call
offset if we know we won't raise a protocol error.
Fixes: 0eb791eaaa ("Make mask nodes more versatile")
Matthias Clasen [Fri, 17 Feb 2023 03:01:42 +0000 (03:01 +0000)]
Merge branch 'test-invisible-text' into 'main'
Add a test for invisible text navigation
See merge request GNOME/gtk!5525
Matthias Clasen [Thu, 16 Feb 2023 19:27:44 +0000 (14:27 -0500)]
Add a test for invisible text navigation
This shows that (at least some) things
work as expected.
See: #1811
Jürgen Benvenuti [Thu, 16 Feb 2023 17:18:16 +0000 (17:18 +0000)]
Update German translation
Matthias Clasen [Thu, 16 Feb 2023 11:24:15 +0000 (11:24 +0000)]
Merge branch 'nielsdg/set-action-enabled-doc-ref' into 'main'
widget: mention action_set_enabled in install_action
See merge request GNOME/gtk!5524
Niels De Graef [Thu, 16 Feb 2023 07:47:06 +0000 (08:47 +0100)]
widget: mention action_set_enabled in install_action
When looking at `gtk_widget_class_install_action()`, it isn't
immediately obvious how actions can be enabled or disabled. Add a
reference to the `gtk_widget_action_set_enabled()` method so people have
a quick link to that.
Matthias Clasen [Wed, 15 Feb 2023 19:54:32 +0000 (19:54 +0000)]
Merge branch 'alatiera/flatpak-ci' into 'main'
ci: Build and publish aarch64 flatpaks
Closes #5594
See merge request GNOME/gtk!5523
Jordan Petridis [Wed, 15 Feb 2023 19:38:24 +0000 (21:38 +0200)]
ci: Add a simple auto-retry policy
Jordan Petridis [Wed, 15 Feb 2023 19:18:56 +0000 (21:18 +0200)]
ci: Build and publish aarch64 flatpaks
Close GNOME/gtk#5594
Jordan Petridis [Wed, 15 Feb 2023 19:10:40 +0000 (21:10 +0200)]
ci: Switch from only/except to rules: keyword
It's more flexible and allows us to combine the flatpak jobs
Emmanuele Bassi [Wed, 15 Feb 2023 16:27:11 +0000 (16:27 +0000)]
Merge branch 'fix-annotations' into 'main'
Fix a couple incorrect annotations for optional parameters
See merge request GNOME/gtk!5503
Matthias Clasen [Wed, 15 Feb 2023 03:54:01 +0000 (03:54 +0000)]
Merge branch 'more-mask-modes' into 'main'
rendernodeparser: Fix mask mode handling
See merge request GNOME/gtk!5522
Matthias Clasen [Wed, 15 Feb 2023 01:28:02 +0000 (20:28 -0500)]
gsk: Add a node parser test for mask modes
Matthias Clasen [Wed, 15 Feb 2023 01:26:17 +0000 (20:26 -0500)]
gsk: Add a render test for mask modes
Matthias Clasen [Wed, 15 Feb 2023 02:46:58 +0000 (21:46 -0500)]
Make make not fallback match GL
We were not handling the inverted-luminance
case the same way, and it caused a test to
fail. Yay for tests.
Matthias Clasen [Wed, 15 Feb 2023 01:25:01 +0000 (20:25 -0500)]
rendernodeparser: Fix mask mode handling
I had forgotten inverted-luminance, and also
to print an error.
Benjamin Otte [Mon, 13 Feb 2023 06:51:59 +0000 (07:51 +0100)]
rendernodeparser: Print an error when failing to parse an enum
Matthias Clasen [Wed, 15 Feb 2023 00:57:17 +0000 (00:57 +0000)]
Merge branch 'mask-modes' into 'main'
Make mask nodes more versatile
See merge request GNOME/gtk!5521
Matthias Clasen [Wed, 15 Feb 2023 00:44:17 +0000 (00:44 +0000)]
Merge branch 'wip/cdavis/menubutton-active' into 'main'
menubutton: Add `active` property and getter/setter
See merge request GNOME/gtk!5506
Matthias Clasen [Wed, 15 Feb 2023 00:41:26 +0000 (00:41 +0000)]
Merge branch 'wip/otte/downloader' into 'main'
Add GdkTextureDownloader
See merge request GNOME/gtk!5515
Matthias Clasen [Wed, 15 Feb 2023 00:36:53 +0000 (00:36 +0000)]
Merge branch 'wip/otte/disable-style-check' into 'main'
CI: Don't run style-check-diff by default
See merge request GNOME/gtk!5520
Benjamin Otte [Tue, 14 Feb 2023 19:16:15 +0000 (20:16 +0100)]
demo: Spice up the mask demo
Also use all the mask modes, weeeee!
Matthias Clasen [Tue, 14 Feb 2023 23:36:43 +0000 (18:36 -0500)]
Document mask node parser format
Matthias Clasen [Wed, 15 Feb 2023 00:04:34 +0000 (19:04 -0500)]
Add more mask node tests
Matthias Clasen [Tue, 14 Feb 2023 18:44:39 +0000 (13:44 -0500)]
Make mask nodes more versatile
Add a GskMaskMode enumeration and implement it
in the GL and cairo renderers.
Benjamin Otte [Tue, 14 Feb 2023 23:53:02 +0000 (23:53 +0000)]
CI: Don't run style-check-diff by default
We don't use it most of the time and it's also confusing to new contributors who think it's important to fix it.
Keep it for manual runs, so that interested people can just click a button to see the results. It also makes it easy to turn back on later.
Matthias Clasen [Tue, 14 Feb 2023 23:50:18 +0000 (23:50 +0000)]
Merge branch 'fix_4258' into 'main'
Don't tell the screen reader that a button is related to an image which has no useful label
Closes #4258
See merge request GNOME/gtk!4665
Lukáš Tyrychtr [Tue, 14 Feb 2023 23:50:18 +0000 (23:50 +0000)]
Don't tell the screen reader that a button is related to an image which has no useful label
Matthias Clasen [Tue, 14 Feb 2023 23:48:43 +0000 (23:48 +0000)]
Merge branch 'cpdb' into 'main'
Update dependencies for CPDB print backend
Closes #5589
See merge request GNOME/gtk!5518
Benjamin Otte [Tue, 14 Feb 2023 06:45:52 +0000 (07:45 +0100)]
memorytexture: Export less private API
It's not needed anymore with GdkTextureDownloader now.
Benjamin Otte [Tue, 14 Feb 2023 06:41:11 +0000 (07:41 +0100)]
glrenderer: Use GdkTexureDownloader
Benjamin Otte [Tue, 14 Feb 2023 06:33:46 +0000 (07:33 +0100)]
texture: Export gdk_texture_get_format()
The API docs outline why quite well.
This should make it possible to do saving of textures to image files
without any private API with the same featureset that GTK uses.
Also remove the gsktextureprivate.h include where
gdk_texture_get_format() was the only reason for it.
Benjamin Otte [Tue, 14 Feb 2023 06:20:40 +0000 (07:20 +0100)]
docs: Link from gdk_texture_download() to GdkTextureDownloader
Benjamin Otte [Tue, 14 Feb 2023 06:19:27 +0000 (07:19 +0100)]
tiff: Use GdkTexureDownloader when saving
Benjamin Otte [Tue, 14 Feb 2023 06:19:18 +0000 (07:19 +0100)]
png: Use GdkTexureDownloader when saving
Benjamin Otte [Tue, 14 Feb 2023 06:18:59 +0000 (07:18 +0100)]
jpeg: Use GdkTexureDownloader when saving
Benjamin Otte [Tue, 14 Feb 2023 06:18:34 +0000 (07:18 +0100)]
pixbuf: Use GdkTextureDownloader when downloading pixbufs
Benjamin Otte [Tue, 14 Feb 2023 06:00:39 +0000 (07:00 +0100)]
gdk: Add GdkTextureDownloader
It's the new object that allows more control about accessing texture
data.
Benjamin Otte [Tue, 14 Feb 2023 05:18:37 +0000 (06:18 +0100)]
memorytexture: Use right size for GBytes
The GBytes were created with the wrong size.
Nobody seems to have looked at it.
Fran Dieguez [Tue, 14 Feb 2023 20:04:07 +0000 (20:04 +0000)]
Update Galician translation
Emmanuele Bassi [Tue, 14 Feb 2023 19:28:36 +0000 (19:28 +0000)]
Merge branch 'gsk-render-node-type-abi-breakage' into 'main'
gsk: Move new 4.10 `GskRenderNodeType`s to the end instead of inserting them in the middle
See merge request GNOME/gtk!5519
Sebastian Dröge [Tue, 14 Feb 2023 18:30:58 +0000 (20:30 +0200)]
gsk: Move new 4.10 `GskRenderNodeType`s to the end instead of inserting them in the middle
tinytrebuchet [Tue, 14 Feb 2023 18:09:13 +0000 (23:39 +0530)]
Update dependencies for CPDB print backend
Require cpdb-frontend 2.x for building CPDB print backend.
Matthias Clasen [Tue, 14 Feb 2023 14:18:29 +0000 (14:18 +0000)]
Merge branch 'kjellahl/clang' into 'main'
gskglrenderjob: Fix compilation with clang
See merge request GNOME/gtk!5516
Hugo Carvalho [Tue, 14 Feb 2023 11:39:50 +0000 (11:39 +0000)]
Update Portuguese translation
Kjell Ahlstedt [Tue, 14 Feb 2023 09:29:25 +0000 (10:29 +0100)]
gskglrenderjob: Fix compilation with clang
Matthias Clasen [Tue, 14 Feb 2023 00:08:39 +0000 (00:08 +0000)]
Merge branch 'texttag_textview_documentation' into 'main'
Update TextTag and TextView indent Documentation
See merge request GNOME/gtk!5507
Matthias Clasen [Tue, 14 Feb 2023 00:03:55 +0000 (00:03 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Fix hotspot handling in dnd
See merge request GNOME/gtk!5513
Matthias Clasen [Mon, 13 Feb 2023 23:38:27 +0000 (18:38 -0500)]
gtk-demo: Fix hotspot handling in dnd
We were not remembering the pointer coordinates.
Aurimas Černius [Mon, 13 Feb 2023 21:07:37 +0000 (21:07 +0000)]
Update Lithuanian translation
Sabri Ünal [Mon, 13 Feb 2023 18:08:05 +0000 (18:08 +0000)]
Update Turkish translation
Andre Klapper [Mon, 13 Feb 2023 17:32:03 +0000 (18:32 +0100)]
Fix invalid markup in Belarusian UI translation
Emmanuele Bassi [Mon, 13 Feb 2023 14:50:35 +0000 (14:50 +0000)]
Merge branch 'faq-updates' into 'main'
faq: Some updates
See merge request GNOME/gtk!5512
Matthias Clasen [Mon, 13 Feb 2023 13:54:36 +0000 (08:54 -0500)]
faq: Add a question about parallel UIs
Matthias Clasen [Mon, 13 Feb 2023 13:50:36 +0000 (08:50 -0500)]
faq: Don't number questions
The numbering makes it unnecessarily hard to add
and remove questions, and does not really seem
necessary. Just use bullets.
Matthias Clasen [Mon, 13 Feb 2023 13:37:37 +0000 (08:37 -0500)]
faq: Some updates
Miscellaneous tweaks and changes, after reading
the whole thing.
Matthias Clasen [Mon, 13 Feb 2023 12:41:48 +0000 (12:41 +0000)]
Merge branch 'fix-font-chooser-filter' into 'main'
Fix an assertion in GtkFontChooserWidget when setting a filter.
See merge request GNOME/gtk!5511
Akira TAGOH [Mon, 13 Feb 2023 03:44:15 +0000 (12:44 +0900)]
Fix an assertion in GtkFontChooserWidget when setting a filter.
Kukuh Syafaat [Mon, 13 Feb 2023 02:47:33 +0000 (02:47 +0000)]
Update Indonesian translation
Matthias Clasen [Mon, 13 Feb 2023 02:04:15 +0000 (21:04 -0500)]
Post-release version bump
Matthias Clasen [Mon, 13 Feb 2023 01:33:41 +0000 (20:33 -0500)]
4.9.4
Matthias Clasen [Mon, 13 Feb 2023 01:35:51 +0000 (20:35 -0500)]
docs: Document new build options
Matthias Clasen [Mon, 13 Feb 2023 00:41:51 +0000 (00:41 +0000)]
Merge branch 'fix-gst-gl-use' into 'main'
gstreamer: Fix gl context use
Closes #5586
See merge request GNOME/gtk!5508
Matthias Clasen [Mon, 13 Feb 2023 00:29:04 +0000 (19:29 -0500)]
gstreamer: Fix gl context use
We were not activating the context in which
we want to wait for the fence. This caused
a stream of critical warnings.
Fixes: #5586
Jacob Mealey [Sun, 12 Feb 2023 23:12:51 +0000 (23:12 +0000)]
Update TextTag and TextView indent Documentation
Change the documentation for both to be in line with Pango documentation
specifically regarding hanging indentation.
Matthias Clasen [Sun, 12 Feb 2023 22:06:36 +0000 (22:06 +0000)]
Merge branch 'search_entry_placeholder' into 'main'
gtksearchentry: Add getter/setter for placeholder text
See merge request GNOME/gtk!4312
Christopher Davis [Sun, 12 Feb 2023 21:14:43 +0000 (16:14 -0500)]
menubutton: Add `active` property and getter/setter
GtkMenuButton currently does not provide a way to tell
if it's open programmatically. The existing methods,
`popup()` and `popdown()`, do not expose any state
to callers. If someone wanted to know whether or not
a menubutton was open, they needed the popover. Given
that GtkMenuButton can manage the popovers itself,
that's not always an option for app developers.
This commit adds the `active` property and associated
methods, where `gtk_menu_button_set_active ()` replaces
both `gtk_menu_popup ()` and `gtk_menu_popdown ()`.
This addition also mirrors changes in other places,
Such as `GtkWidget:visible` vs `show()`/`hide()`.
Matthias Clasen [Sun, 12 Feb 2023 16:41:08 +0000 (16:41 +0000)]
Apply 4 suggestion(s) to 2 file(s)
Alexandros Theodotou [Sat, 1 Jan 2022 20:08:53 +0000 (20:08 +0000)]
gtksearchentry: Add getter/setter for placeholder text
Matthias Clasen [Sun, 12 Feb 2023 21:44:00 +0000 (21:44 +0000)]
Merge branch 'mark-deprecations' into 'main'
docs: Mark various deprecations
See merge request GNOME/gtk!5502
Yuri Chornoivan [Sun, 12 Feb 2023 17:56:09 +0000 (17:56 +0000)]
Update Ukrainian translation
Matthias Clasen [Sun, 12 Feb 2023 16:36:52 +0000 (16:36 +0000)]
Merge branch 'template-child-dispose-order' into 'main'
gtk: Set widget template children to NULL before destroy unref
See merge request GNOME/gtk!4611
Matthias Clasen [Sun, 12 Feb 2023 16:28:12 +0000 (16:28 +0000)]
Merge branch 'main' into 'main'
Add note about widgets implementing the interface adding the `horizontal`/`vertical` CSS classes
See merge request GNOME/gtk!5391
madmurphy [Sun, 12 Feb 2023 16:28:12 +0000 (16:28 +0000)]
Add note about widgets implementing the interface adding the `horizontal`/`vertical` CSS classes
Marco Melorio [Sun, 12 Feb 2023 15:23:16 +0000 (16:23 +0100)]
docs: Mark everything in GtkVolumeButton as deprecated
Marco Melorio [Sun, 12 Feb 2023 15:21:15 +0000 (16:21 +0100)]
docs: Mark everything in GtkStatusBar as deprecated
Matthias Clasen [Sun, 12 Feb 2023 15:29:27 +0000 (15:29 +0000)]
Merge branch 'no-more-lpr' into 'main'
printing: Drop the lpr backend
See merge request GNOME/gtk!5500
Matthias Clasen [Sun, 12 Feb 2023 15:28:06 +0000 (15:28 +0000)]
Merge branch 'texture-atlas-crash' into 'main'
gl: Avoid a crash in the texture library
Closes #5175
See merge request GNOME/gtk!5501
Marco Melorio [Sun, 12 Feb 2023 15:12:17 +0000 (16:12 +0100)]
docs: Mark everything in GtkLockButton as deprecated
Matthias Clasen [Sun, 12 Feb 2023 14:27:01 +0000 (09:27 -0500)]
printing: Drop the lpr backend
We want to consolidate and get to fewer print
backends (ideally only one), and the future is cpdb.
Marco Melorio [Sun, 12 Feb 2023 15:06:11 +0000 (16:06 +0100)]
docs: Mark everything in GtkCellAreaContext as deprecated
Marco Melorio [Sun, 12 Feb 2023 15:01:55 +0000 (16:01 +0100)]
docs: Mark everything in GtkAssistant as deprecated