Emmanuele Bassi [Mon, 27 Feb 2023 16:32:35 +0000 (16:32 +0000)]
Verbiage Change
Bobby Neal [Sun, 26 Feb 2023 17:04:17 +0000 (17:04 +0000)]
Update docs/reference/gtk/getting_started.md
Hugo Carvalho [Sun, 26 Feb 2023 16:20:29 +0000 (16:20 +0000)]
Update Portuguese translation
Matthias Clasen [Sun, 26 Feb 2023 13:44:30 +0000 (13:44 +0000)]
Merge branch 'pickers-demo-dnd' into 'main'
gtk4-demo: Accept file dnd in the pickers demo
See merge request GNOME/gtk!5556
Matthias Clasen [Thu, 23 Feb 2023 19:44:52 +0000 (14:44 -0500)]
gtk4-demo: Accept file dnd in the pickers demo
Easy to add and expected of a file picker.
Alexander Shopov [Sun, 26 Feb 2023 08:48:06 +0000 (08:48 +0000)]
Update Bulgarian translation
Anders Jonsson [Sat, 25 Feb 2023 21:57:36 +0000 (21:57 +0000)]
Update Swedish translation
Matthias Clasen [Sat, 25 Feb 2023 13:41:52 +0000 (13:41 +0000)]
Merge branch 'ebassi/button-no-check' into 'main'
Remove unused code in GtkButton
See merge request GNOME/gtk!5553
Emmanuele Bassi [Fri, 24 Feb 2023 12:10:52 +0000 (12:10 +0000)]
Remove unused code in GtkButton
GtkButton still has some code checking if the instance passed to
gtk_button_set_label() is a GtkCheckButton; GtkCheckButton is not a
GtkButton any more.
Yosef Or Boczko [Fri, 24 Feb 2023 09:57:37 +0000 (09:57 +0000)]
Update Hebrew translation
Matthias Clasen [Thu, 23 Feb 2023 16:24:06 +0000 (16:24 +0000)]
Merge branch 'mcatanzaro/#5619' into 'main'
filesystemmodel: fix crash when file is removed
Closes #5619
See merge request GNOME/gtk!5550
Emmanuele Bassi [Thu, 23 Feb 2023 15:22:16 +0000 (15:22 +0000)]
Merge branch 'add_toggle_button_role' into 'main'
a11y: Introduce a dedicated role for toggle buttons
See merge request GNOME/gtk!5549
Michael Catanzaro [Thu, 23 Feb 2023 15:20:03 +0000 (09:20 -0600)]
filesystemmodel: fix crash when file is removed
In
32247bc50e63b709ae738a95a2ec71345b5fad75 node_get_for_file() was
changed to return GTK_INVALID_LIST_POSITION rather than 0 when the file
is untracked. Most call sites were updated accordingly, but this one was
missed.
Fixes #5619
Lukáš Tyrychtr [Thu, 23 Feb 2023 14:02:29 +0000 (15:02 +0100)]
Use the correct role for GtkToggleButton
Lukáš Tyrychtr [Thu, 23 Feb 2023 13:22:20 +0000 (14:22 +0100)]
a11y: Introduce a dedicated role for toggle buttons
Up until now, toggle buttons were presented as regular push buttons.
That's the approach used by the ARIA specification, however, our platform
accessibility backend, at-spi2, can not represent accessibe states with values,
so we can not represent the design pattern precisely enough for screen readers.
If, in future, the a11y backends gain this capability, we might consider again
removing this role.
Matthias Clasen [Thu, 23 Feb 2023 01:03:41 +0000 (01:03 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Fix the shortcuts-window demo
See merge request GNOME/gtk!5548
Matthias Clasen [Wed, 22 Feb 2023 19:55:56 +0000 (14:55 -0500)]
gtk-demo: Fix the shortcuts-window demo
Presenting the shortcutswindow got lost
in
fb8e52f0c957fa7. Oops.
Fran Dieguez [Wed, 22 Feb 2023 17:23:21 +0000 (17:23 +0000)]
Update Galician translation
Sabri Ünal [Wed, 22 Feb 2023 11:41:36 +0000 (11:41 +0000)]
Update Turkish translation
Philipp Kiemle [Wed, 22 Feb 2023 10:34:50 +0000 (10:34 +0000)]
Update German translation
Matthias Clasen [Tue, 21 Feb 2023 16:48:28 +0000 (16:48 +0000)]
Merge branch 'improve_gtknotebook_a11y' into 'main'
GtkNotebook: Improve the labels of notebook pages for a11y
See merge request GNOME/gtk!5546
Lukáš Tyrychtr [Tue, 21 Feb 2023 14:13:11 +0000 (15:13 +0100)]
GtkNotebook: Improve the labels of notebook pages for a11y
Daniel [Tue, 21 Feb 2023 11:07:49 +0000 (12:07 +0100)]
Updated Spanish translation
Emmanuele Bassi [Mon, 20 Feb 2023 21:30:05 +0000 (21:30 +0000)]
Merge branch 'main' into 'main'
button: Remove nullable annotation for new_from_icon_name()
Closes #5606
See merge request GNOME/gtk!5544
Philipp Hörist [Mon, 20 Feb 2023 19:32:06 +0000 (20:32 +0100)]
button: Remove nullable annotation for new_from_icon_name()
This makes it more consistent with set_icon_name() which
does also not accept NULL.
Fixes #5606
Matthias Clasen [Mon, 20 Feb 2023 13:12:27 +0000 (13:12 +0000)]
Merge branch 'builder-tool-child-properties' into 'main'
gtk4-builder-tool: Prefer child properties
Closes #5609
See merge request GNOME/gtk!5543
Matthias Clasen [Mon, 20 Feb 2023 13:04:33 +0000 (13:04 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
filechooser: Fix paned limits
See merge request GNOME/gtk!5542
Matthias Clasen [Mon, 20 Feb 2023 02:47:10 +0000 (21:47 -0500)]
gtk4-builder-tool: Prefer child properties
Rewrite <child> elements to use child properties
where that is easily possible.
Fixes: #5609
Kukuh Syafaat [Mon, 20 Feb 2023 01:20:48 +0000 (01:20 +0000)]
Update Indonesian translation
Matthias Clasen [Mon, 20 Feb 2023 00:12:30 +0000 (19:12 -0500)]
filechooser: Fix paned limits
The intention of the ui file was to not let
the paned shrink both children down to nothing,
but using <child> for the children effectively
overrides the setting of the shrink properties.
Fix that by using child properties instead of
<child>.
Matthias Clasen [Mon, 20 Feb 2023 00:05:06 +0000 (00:05 +0000)]
Merge branch 'builder-tool-template-parent' into 'main'
builder-tool: Try harder to find template parents
Closes #5232
See merge request GNOME/gtk!5541
Matthias Clasen [Sun, 19 Feb 2023 18:07:16 +0000 (13:07 -0500)]
builder-tool: Try harder to find template parents
This will make it work (in some cases) to add extra
libraries via LD_PRELOAD.
Based on work by Julian Sparber,
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5084
Fixes: #5232
Asier Sarasua Garmendia [Sun, 19 Feb 2023 20:44:24 +0000 (20:44 +0000)]
Update Basque translation
Yuri Chornoivan [Sun, 19 Feb 2023 20:23:35 +0000 (20:23 +0000)]
Update Ukrainian translation
Aurimas Černius [Sun, 19 Feb 2023 19:06:03 +0000 (19:06 +0000)]
Update Lithuanian translation
Emmanuele Bassi [Sun, 19 Feb 2023 17:18:01 +0000 (17:18 +0000)]
Merge branch 'texturescalenode-type-annotations' into 'main'
Fix self-`(type)` annotations for `TextureScaleNode` methods
See merge request GNOME/gtk!5539
Sebastian Dröge [Sun, 19 Feb 2023 17:00:34 +0000 (19:00 +0200)]
Fix self-`(type)` annotations for `TextureScaleNode` methods
Matthias Clasen [Sun, 19 Feb 2023 16:15:49 +0000 (16:15 +0000)]
Merge branch 'fix_custom_accessible_hierarchy' into 'main'
Allow setting accessible parent and next sibling
See merge request GNOME/gtk!5517
Matthias Clasen [Sun, 19 Feb 2023 15:26:27 +0000 (15:26 +0000)]
Fix the build
Matthias Clasen [Sun, 19 Feb 2023 15:09:25 +0000 (15:09 +0000)]
Miscellaneous formatting and documentation fixes
Matthias Clasen [Sun, 19 Feb 2023 14:56:51 +0000 (14:56 +0000)]
Merge branch 'missing-since-markers' into 'main'
Add two missing `Since` markers
See merge request GNOME/gtk!5537
Sebastian Dröge [Sun, 19 Feb 2023 09:18:15 +0000 (11:18 +0200)]
Add two missing `Since` markers
Ekaterine Papava [Sun, 19 Feb 2023 05:48:04 +0000 (05:48 +0000)]
Update Georgian translation
Benjamin Otte [Sun, 19 Feb 2023 05:33:59 +0000 (05:33 +0000)]
Merge branch 'wip/otte/for-main' into 'main'
listview: Measure children only, not self
See merge request GNOME/gtk!5535
Matthias Clasen [Sun, 19 Feb 2023 05:01:53 +0000 (05:01 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Drop some unnecessary includes
See merge request GNOME/gtk!5536
Matthias Clasen [Sun, 19 Feb 2023 03:54:45 +0000 (22:54 -0500)]
Drop some unnecessary includes
Benjamin Otte [Sun, 19 Feb 2023 03:55:33 +0000 (04:55 +0100)]
listview: Measure children only, not self
The previous code would include CSS padding/margin/border in the
measurement and that is wrong.
Until commit
a96c75ff02 this was not actually visible, but afterwards
listitems were allocated 16px too wide.
Test included
Matthias Clasen [Sun, 19 Feb 2023 00:00:10 +0000 (19:00 -0500)]
Revert "Merge branch 'inscription-single-line' into 'main'"
This reverts commit
7ec90abf2473a3ba0fd9d0f0eda8b2f3f9b2f915, reversing
changes made to
ec49a912aa855eb8064a4bbaf7a2d311c4cdf83a.
We did not have agreement on this after all.
Matthias Clasen [Sat, 18 Feb 2023 23:34:17 +0000 (23:34 +0000)]
Merge branch 'inscription-single-line' into 'main'
inscription: Add single-line-mode property
Closes #5444
See merge request GNOME/gtk!5504
Matthias Clasen [Sat, 18 Feb 2023 22:20:30 +0000 (22:20 +0000)]
Merge branch 'wip/carlosg/dnd-x11-keys' into 'main'
gdk/x11: Also grab keyboard during XDnD grabs
Closes #5604
See merge request GNOME/gtk!5533
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
Lukáš Tyrychtr [Wed, 15 Feb 2023 11:29:16 +0000 (12:29 +0100)]
Allow updating the next accessible sibling for a GtkAccessible
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