gtk4.git
2 years agoprinting: Drop the lpr backend
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.

2 years agoNEWS: Updates
Matthias Clasen [Sun, 12 Feb 2023 14:21:38 +0000 (09:21 -0500)]
NEWS: Updates

2 years agoMerge branch 'mask-nodes-rebased' into 'main'
Matthias Clasen [Sun, 12 Feb 2023 14:11:47 +0000 (14:11 +0000)]
Merge branch 'mask-nodes-rebased' into 'main'

gsk: Introduce mask nodes

See merge request GNOME/gtk!5497

2 years agoMerge branch 'nacho/scalebutton-active' into 'main'
Matthias Clasen [Sun, 12 Feb 2023 14:01:27 +0000 (14:01 +0000)]
Merge branch 'nacho/scalebutton-active' into 'main'

gtkscalebutton: add active property

See merge request GNOME/gtk!5492

2 years agogtkscalebutton: add active property
Ignacio Casal Quinteiro [Sun, 12 Feb 2023 14:01:26 +0000 (14:01 +0000)]
gtkscalebutton: add active property

2 years agoAdd a mask node demo
Matthias Clasen [Sun, 12 Feb 2023 02:38:42 +0000 (21:38 -0500)]
Add a mask node demo

2 years agoAdd a test for mask nodes
Matthias Clasen [Sun, 12 Feb 2023 03:20:24 +0000 (22:20 -0500)]
Add a test for mask nodes

2 years agoAdd gtk_snapshot_push_mask
Matthias Clasen [Sat, 11 Feb 2023 15:06:54 +0000 (10:06 -0500)]
Add gtk_snapshot_push_mask

2 years agogl: Support mask nodes
Matthias Clasen [Sat, 11 Feb 2023 15:38:56 +0000 (10:38 -0500)]
gl: Support mask nodes

Add a shader for masking.

2 years agogsk: Introduce mask nodes
Matthias Clasen [Sat, 11 Feb 2023 13:59:06 +0000 (08:59 -0500)]
gsk: Introduce mask nodes

Add GskMaskNode, and support it in the render node
parser, in the inspector and in GtkSnapshot.

The rendering is just fallback for now.

Based on old work by Timm Bäder.

2 years agoUpdate Georgian translation
Ekaterine Papava [Sun, 12 Feb 2023 12:30:05 +0000 (12:30 +0000)]
Update Georgian translation

2 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 12 Feb 2023 12:20:48 +0000 (13:20 +0100)]
Update POTFILES.in

2 years agoMerge branch 'fix_editable_label' into 'main'
Matthias Clasen [Sun, 12 Feb 2023 02:55:45 +0000 (02:55 +0000)]
Merge branch 'fix_editable_label' into 'main'

Remove timeout when disposing GtkEditableLabel

Closes #5584

See merge request GNOME/gtk!5499

2 years agoMerge branch 'wip/wl-dispatch-helper' into 'main'
Matthias Clasen [Sun, 12 Feb 2023 01:01:29 +0000 (01:01 +0000)]
Merge branch 'wip/wl-dispatch-helper' into 'main'

wayland: Add event queue dispatch helper

See merge request GNOME/gtk!5498

2 years agoRemove timeout when disposing GtkEditableLabel
Alexandros Theodotou [Sun, 12 Feb 2023 00:28:22 +0000 (09:28 +0900)]
Remove timeout when disposing GtkEditableLabel

Fixes: #5584
2 years agoMerge branch 'scaled-textures' into 'main'
Matthias Clasen [Sat, 11 Feb 2023 22:16:43 +0000 (22:16 +0000)]
Merge branch 'scaled-textures' into 'main'

Scaled textures

See merge request GNOME/gtk!5488

2 years agowayland/launch-context: Use dispatch helper
Jonas Ådahl [Sat, 11 Feb 2023 22:14:53 +0000 (23:14 +0100)]
wayland/launch-context: Use dispatch helper

Otherwise we risk a busy loop if e.g. the pipe broke.

2 years agowayland: Add event queue dispatch helper
Jonas Ådahl [Sat, 11 Feb 2023 22:13:39 +0000 (23:13 +0100)]
wayland: Add event queue dispatch helper

Dispatch failing should always fatal; use a helper to centralize the
error handling everywhere.

2 years agoAdd gtk_snapshot_append_scaled_texture
Matthias Clasen [Sat, 11 Feb 2023 19:20:23 +0000 (14:20 -0500)]
Add gtk_snapshot_append_scaled_texture

This is the snapshot api corresponding to
gsk_texture_scale_node_new.

2 years agoAdd a test for scaled textures
Matthias Clasen [Sat, 11 Feb 2023 18:43:05 +0000 (13:43 -0500)]
Add a test for scaled textures

2 years agogl: Handle GskTextureScaleNodes
Matthias Clasen [Wed, 8 Feb 2023 03:58:47 +0000 (22:58 -0500)]
gl: Handle GskTextureScaleNodes

2 years agogl: Make texture slicing more flexible
Matthias Clasen [Sat, 11 Feb 2023 12:46:38 +0000 (07:46 -0500)]
gl: Make texture slicing more flexible

Allow to specify the filtering to use for the slices,
and allow forcing the number of slices. This will be
used in the next commit.

2 years agogl: Pass filters down from visit_texture_node
Matthias Clasen [Wed, 8 Feb 2023 00:29:07 +0000 (19:29 -0500)]
gl: Pass filters down from visit_texture_node

For now, we always pass GL_LINEAR.

2 years agogtk-demo: Add filtering to the zoom demo
Matthias Clasen [Wed, 8 Feb 2023 00:21:51 +0000 (19:21 -0500)]
gtk-demo: Add filtering to the zoom demo

2 years agogtk-demo: Rewrite the zoom demo slightly
Matthias Clasen [Wed, 8 Feb 2023 00:40:47 +0000 (19:40 -0500)]
gtk-demo: Rewrite the zoom demo slightly

Use a texture directly instead of a paintable.
This will be used in the following commit to
introduce filters.

2 years agonodeparser: Support texture-scale nodes
Matthias Clasen [Wed, 8 Feb 2023 12:06:09 +0000 (07:06 -0500)]
nodeparser: Support texture-scale nodes

2 years agogsk: Introduce GskTextureScaleNode
Matthias Clasen [Wed, 8 Feb 2023 03:52:06 +0000 (22:52 -0500)]
gsk: Introduce GskTextureScaleNode

2 years agoMerge branch 'wip/handle-more-wl-dispatch-failures' into 'main'
Matthias Clasen [Sat, 11 Feb 2023 19:56:45 +0000 (19:56 +0000)]
Merge branch 'wip/handle-more-wl-dispatch-failures' into 'main'

wayland: Handle dispatch failing in a couple of more places

See merge request GNOME/gtk!5495

2 years agogsk: Generate mipmaps when requested
Matthias Clasen [Wed, 8 Feb 2023 00:24:08 +0000 (19:24 -0500)]
gsk: Generate mipmaps when requested

If the min_filter requires it, call
glGenerateMipmap for our textures.

2 years agogsk: Don't limit filters too much
Matthias Clasen [Wed, 8 Feb 2023 00:22:54 +0000 (19:22 -0500)]
gsk: Don't limit filters too much

GL does not allow mipmapping for mag filters,
but it doesn't have a problem with it for min
filters.

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sat, 11 Feb 2023 14:18:42 +0000 (14:18 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

gdkevents.c: Fix up folding

See merge request GNOME/gtk!5496

2 years agogskrendernodeimpl.c: Use folding
Matthias Clasen [Wed, 8 Feb 2023 03:33:03 +0000 (22:33 -0500)]
gskrendernodeimpl.c: Use folding

Instead of homegrown markup.

2 years agogdkevents.c: Fix up folding
Matthias Clasen [Wed, 8 Feb 2023 03:31:58 +0000 (22:31 -0500)]
gdkevents.c: Fix up folding

The modeline was lost at some point,
and superfluous spacing inserted.

2 years agowayland: Handle dispatch failing in a couple of more places
Jonas Ådahl [Sat, 11 Feb 2023 10:42:21 +0000 (11:42 +0100)]
wayland: Handle dispatch failing in a couple of more places

Without doing this, we'll end up with risking GTK processes sitting
eating 100% CPU instead of just exit(1):ing.

2 years agoMerge branch 'cpdb' into 'main'
Marek Kašík [Fri, 10 Feb 2023 23:10:20 +0000 (23:10 +0000)]
Merge branch 'cpdb' into 'main'

New CPDB print backend for GTK Print Dialog

See merge request GNOME/gtk!4930

2 years agoNew CPDB print backend for GTK Print Dialog
tinytrebuchet [Thu, 9 Feb 2023 18:17:02 +0000 (23:47 +0530)]
New CPDB print backend for GTK Print Dialog

The Common Print Dialog Backends (CPDB) concept has GUI-toolkit-independent
backends for each print technology (CUPS, Print to File, cloud printing
services, ...) and each print dialog (GTK, Qt, Chromium, ...) is supposed
to use this backend, so that changes in print technologies can be centrally
and quickly covered by changing the backends and everything new gets available
in all print dialogs.

This commit provides a GTK print dialog backend to add support for the CPDB
concept. It communicates with all installed CPDB backends and so gives support
for all these print technologies to the GTK print dialog.

To make use of CPDB the GTK print dialog is supposed to be installed with this
backend and the 'Print To File' backend, and not any others to prevent printer
duplication.

2 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 10 Feb 2023 05:57:42 +0000 (05:57 +0000)]
Update Turkish translation

2 years agoMerge branch 'avoid-criticals-tracker' into 'main'
Matthias Clasen [Thu, 9 Feb 2023 19:43:31 +0000 (19:43 +0000)]
Merge branch 'avoid-criticals-tracker' into 'main'

searchengine: Avoid criticals when tracker init failed

See merge request GNOME/gtk!5489

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.

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

2 years agoUpdate Belarusian translation
Vasil Pupkin [Wed, 8 Feb 2023 21:48:28 +0000 (21:48 +0000)]
Update Belarusian translation

2 years agoMerge branch 'stop-testing-pixbuf-formats' into 'main'
Matthias Clasen [Tue, 7 Feb 2023 18:48:39 +0000 (18:48 +0000)]
Merge branch 'stop-testing-pixbuf-formats' into 'main'

Drop pixbuf format tests

See merge request GNOME/gtk!5486

2 years agoDrop pixbuf format tests
Matthias Clasen [Tue, 7 Feb 2023 12:54:22 +0000 (07:54 -0500)]
Drop pixbuf format tests

We have our own loaders for the formats we
always want to support, so we don't need to
check for what gdk-pixbuf supports.

2 years agoMerge branch 'file-dialog-fixes' into 'main'
Matthias Clasen [Tue, 7 Feb 2023 12:42:09 +0000 (12:42 +0000)]
Merge branch 'file-dialog-fixes' into 'main'

filedialog: Robustness fixes

See merge request GNOME/gtk!5485

2 years agofiledialog: Robustness fixes
Matthias Clasen [Mon, 6 Feb 2023 21:14:43 +0000 (22:14 +0100)]
filedialog: Robustness fixes

This code was not working well.

2 years agofilechooserportal: Fix an oversight
Matthias Clasen [Mon, 6 Feb 2023 19:03:45 +0000 (20:03 +0100)]
filechooserportal: Fix an oversight

2 years agoUpdate Turkish translation
Sabri Ünal [Mon, 6 Feb 2023 09:19:35 +0000 (09:19 +0000)]
Update Turkish translation

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Mon, 6 Feb 2023 06:53:14 +0000 (06:53 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

CONTRIBUTING: Updates

See merge request GNOME/gtk!5483

2 years agoCONTRIBUTING: Updates
Matthias Clasen [Mon, 6 Feb 2023 06:34:28 +0000 (07:34 +0100)]
CONTRIBUTING: Updates

Mention matrix instead of irc, and ask
for display/graphics as essential info
in issues.

2 years agoUpdate Polish translation
Piotr Drąg [Sun, 5 Feb 2023 14:22:00 +0000 (15:22 +0100)]
Update Polish translation

2 years agoMerge branch 'rename-openuri-portal' into 'main'
Matthias Clasen [Sun, 5 Feb 2023 08:27:09 +0000 (08:27 +0000)]
Merge branch 'rename-openuri-portal' into 'main'

Use a Gtk prefix for dbus-generated code

Closes #5572

See merge request GNOME/gtk!5482

2 years agoUse a Gtk prefix for dbus-generated code
Matthias Clasen [Sun, 5 Feb 2023 07:49:21 +0000 (08:49 +0100)]
Use a Gtk prefix for dbus-generated code

Copying this file from GIO without renaming it
was not the greatest idea in retrospect.

Fixes: #5572
2 years agoUpdate Chinese (Taiwan) translation
Cheng-Chia Tseng [Sat, 4 Feb 2023 16:28:15 +0000 (16:28 +0000)]
Update Chinese (Taiwan) translation

2 years agoPost-release version bump
Matthias Clasen [Sat, 4 Feb 2023 16:01:51 +0000 (17:01 +0100)]
Post-release version bump

2 years agomake-release: Explicily enable introspection
Matthias Clasen [Sat, 4 Feb 2023 15:31:55 +0000 (16:31 +0100)]
make-release: Explicily enable introspection

2 years ago4.9.3
Matthias Clasen [Sat, 4 Feb 2023 15:05:07 +0000 (16:05 +0100)]
4.9.3

2 years agoMerge branch 'wip/carlosg/scroll-fix' into 'main'
Matthias Clasen [Sat, 4 Feb 2023 13:14:02 +0000 (13:14 +0000)]
Merge branch 'wip/carlosg/scroll-fix' into 'main'

gdk/x11: Reset all scroll valuators on enter

Closes #4160

See merge request GNOME/gtk!5479

2 years agoMerge branch 'ebassi/stack-at-context' into 'main'
Matthias Clasen [Sat, 4 Feb 2023 12:37:20 +0000 (12:37 +0000)]
Merge branch 'ebassi/stack-at-context' into 'main'

a11y: Clear the GtkATContext in a single step

See merge request GNOME/gtk!5477

2 years agogdk/x11: Reset all scroll valuators on enter
Carlos Garnacho [Sat, 4 Feb 2023 12:10:42 +0000 (13:10 +0100)]
gdk/x11: Reset all scroll valuators on enter

We no longer need to make much distinction between multiple logical
devices, plus it breaks esp. with the Xwayland input device distribution.
Just iterate across all devices and reset their scroll valuators.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4160
2 years agoMerge branch 'wip/carlosg/wayland-device-refactor' into 'main'
Matthias Clasen [Sat, 4 Feb 2023 07:48:33 +0000 (07:48 +0000)]
Merge branch 'wip/carlosg/wayland-device-refactor' into 'main'

Refactor some wayland code

See merge request GNOME/gtk!5473

2 years agoMerge branch 'rgba-free-checked' into 'main'
Matthias Clasen [Sat, 4 Feb 2023 07:48:24 +0000 (07:48 +0000)]
Merge branch 'rgba-free-checked' into 'main'

gtktextview: Avoid calling gdk_rgba_free for NULL values

See merge request GNOME/gtk!5474

2 years agoMerge branch 'ebassi/accessible-editable' into 'main'
Matthias Clasen [Sat, 4 Feb 2023 07:47:36 +0000 (07:47 +0000)]
Merge branch 'ebassi/accessible-editable' into 'main'

a11y: Simplify GtkAccessible implementation for editables

See merge request GNOME/gtk!5475

2 years agoa11y: Clear the GtkATContext in a single step
Emmanuele Bassi [Fri, 3 Feb 2023 16:11:22 +0000 (17:11 +0100)]
a11y: Clear the GtkATContext in a single step

There's no need to unrealize the GtkATContext inside dispose() and then
drop its reference inside finalize().

2 years agogtktextview: Avoid calling gdk_rgba_free for NULL values
Marco Trevisan (Treviño) [Fri, 3 Feb 2023 15:41:56 +0000 (16:41 +0100)]
gtktextview: Avoid calling gdk_rgba_free for NULL values

Related to glib#2908

2 years agogdk/wayland: Rename gdkkeys-wayland.c file
Carlos Garnacho [Fri, 3 Feb 2023 15:13:37 +0000 (16:13 +0100)]
gdk/wayland: Rename gdkkeys-wayland.c file

Since it contains the GdkKeymap implementation, give it a more
obvious name.

2 years agogdk/wayland: "Split" GdkWaylandDevice implementation out
Carlos Garnacho [Fri, 3 Feb 2023 14:55:09 +0000 (15:55 +0100)]
gdk/wayland: "Split" GdkWaylandDevice implementation out

This is a bit spaghetti right now, since seats and devices were
heavily entangled there are a number of crossed private API calls that
should ideally not be there.

Let this be a first step, so more bits may move from the seat
implementation to devices.

2 years agogdk/wayland: Split GdkDevicePad wayland implementation
Carlos Garnacho [Thu, 2 Feb 2023 17:06:52 +0000 (18:06 +0100)]
gdk/wayland: Split GdkDevicePad wayland implementation

This now lives in its own C file.

2 years agoa11y: Simplify GtkAccessible implementation for editables
Lukáš Tyrychtr [Mon, 16 Jan 2023 10:39:41 +0000 (11:39 +0100)]
a11y: Simplify GtkAccessible implementation for editables

This commit implements the idea brought up in #5032, and provides a
simple function for GtkEditable implementations using a delegate object.
The accessible state is proxied from the outher GtkEditable to the
delegate.

2 years agogdk/wayland: Move struct declarations to header
Carlos Garnacho [Thu, 2 Feb 2023 17:03:29 +0000 (18:03 +0100)]
gdk/wayland: Move struct declarations to header

These will be used from outside the main file, after we are
done splitting it.

2 years agogdk/wayland: Move GdkWaylandDevice data to private struct
Carlos Garnacho [Thu, 2 Feb 2023 16:14:22 +0000 (17:14 +0100)]
gdk/wayland: Move GdkWaylandDevice data to private struct

Before splitting this object, avoid leaking details in its struct.

2 years agogdk/wayland: Rename gdkdevice-wayland.c to gdkseat-wayland.c
Carlos Garnacho [Thu, 2 Feb 2023 14:53:57 +0000 (15:53 +0100)]
gdk/wayland: Rename gdkdevice-wayland.c to gdkseat-wayland.c

This file, event though a clump of input-y objects, has more of
seats than anything else. Rename it so that we can start splitting
these objects out of it.

2 years agoMerge branch 'file-chooser-context-menu' into 'main'
Matthias Clasen [Fri, 3 Feb 2023 13:39:21 +0000 (13:39 +0000)]
Merge branch 'file-chooser-context-menu' into 'main'

filechooser: Fix context menus

Closes #5554

See merge request GNOME/gtk!5472

2 years agoMerge branch 'drag-icon-robustness' into 'main'
Matthias Clasen [Fri, 3 Feb 2023 13:19:26 +0000 (13:19 +0000)]
Merge branch 'drag-icon-robustness' into 'main'

dragicon: Handle files without info

See merge request GNOME/gtk!5460

2 years agofilechooser: Fix context menus
Matthias Clasen [Fri, 3 Feb 2023 13:16:40 +0000 (14:16 +0100)]
filechooser: Fix context menus

We only want to show the file list context menu
when we are over the file list.

Fixes: #5554
2 years agoMerge branch 'ebassi/public-accessible' into 'main'
Matthias Clasen [Fri, 3 Feb 2023 11:31:06 +0000 (11:31 +0000)]
Merge branch 'ebassi/public-accessible' into 'main'

Make GtkAccessible public

Closes #4240

See merge request GNOME/gtk!5470

2 years agoinspector: Show if accessibles aren't realized
Matthias Clasen [Fri, 3 Feb 2023 10:40:52 +0000 (11:40 +0100)]
inspector: Show if accessibles aren't realized

This prevents confusion and makes it clear
what is going on.

2 years agoa11y: Documentation and code style fixes
Emmanuele Bassi [Thu, 2 Feb 2023 14:44:15 +0000 (15:44 +0100)]
a11y: Documentation and code style fixes

2 years agoa11y: Fix get_bounds() implementation
Emmanuele Bassi [Thu, 2 Feb 2023 14:43:29 +0000 (15:43 +0100)]
a11y: Fix get_bounds() implementation

Don't allocate graphene_rect_t, and fix the size retrieval.

2 years agoTake the widget transform into account when computing the bounds for a11y
Lukáš Tyrychtr [Thu, 5 Jan 2023 15:06:24 +0000 (16:06 +0100)]
Take the widget transform into account when computing the bounds for a11y

2 years agoa11y: Use a DOM-like API for iterating accessible objects
Lukáš Tyrychtr [Fri, 25 Nov 2022 15:55:12 +0000 (16:55 +0100)]
a11y: Use a DOM-like API for iterating accessible objects

The `get_child_at_index()` API model comes from AT-SPI, and it's not an
efficient design, especially when coupled with large widgets.

Replace `get_child_at_index()` with `get_first_accessible_child()` and
`get_next_accessible_sibling()`.

That allows efficiently retrieving all the children, simplifies the
implementation of GtkAccessible in GtkWidget and closely resembeles the
GtkWidget API.

Getting the last child and previous sibling for iterating backwards is
not a part of the interface at the moment, but they can be added at a
later date.

Note that this change required tracking the next stack page in
GtkStackPage.

2 years agoa11y: Rename GtkAccessible.get_parent
Lukáš Tyrychtr [Tue, 22 Nov 2022 14:17:30 +0000 (15:17 +0100)]
a11y: Rename GtkAccessible.get_parent

Avoid a collision when the type implementing the GtkAccessible interface
already has a `get_parent()` method—like GtkWidget.

2 years agoApply trivial review suggestions
Emmanuele Bassi [Tue, 22 Nov 2022 12:54:42 +0000 (12:54 +0000)]
Apply trivial review suggestions

2 years agoAdd versioned symbol annotations
Emmanuele Bassi [Fri, 3 Feb 2023 09:48:24 +0000 (10:48 +0100)]
Add versioned symbol annotations

2 years agoStyle fixes
Lukáš Tyrychtr [Fri, 16 Sep 2022 16:48:40 +0000 (18:48 +0200)]
Style fixes

Documentation and coding style updates.

2 years agostack: Use a pointer array for children
Lukáš Tyrychtr [Fri, 16 Sep 2022 14:29:53 +0000 (16:29 +0200)]
stack: Use a pointer array for children

Reduce our dependency on linked lists; pointer arrays are better at
cache locality.

Additionally, we can avoid quadratic behaviors when finding a child at a
given index.

2 years agoStyle fix
Lukáš Tyrychtr [Fri, 16 Sep 2022 11:44:34 +0000 (13:44 +0200)]
Style fix

2 years agoImprove documentation
Lukáš Tyrychtr [Thu, 15 Sep 2022 14:00:25 +0000 (16:00 +0200)]
Improve documentation

2 years agoa11y: Implement new GtkAccessible vfuncs in GtkStack
Lukáš Tyrychtr [Mon, 12 Sep 2022 15:23:29 +0000 (17:23 +0200)]
a11y: Implement new GtkAccessible vfuncs in GtkStack

Implement the virtual a11y children for GtkStack.

2 years agoUpdate API docs
Lukáš Tyrychtr [Mon, 12 Sep 2022 12:44:46 +0000 (14:44 +0200)]
Update API docs

2 years agoMake GtkAccessible public
Lukáš Tyrychtr [Mon, 12 Sep 2022 12:40:11 +0000 (14:40 +0200)]
Make GtkAccessible public

Out of tree classes need to be able to implement the GtkAccessible
interface, in order to implement custom accessible objects.

Fixes: #4240
2 years agoa11y: Add bounds rectangle to GtkAccessible
Lukáš Tyrychtr [Mon, 12 Sep 2022 09:55:06 +0000 (11:55 +0200)]
a11y: Add bounds rectangle to GtkAccessible

Make the bounds calculation part of the accessible interface.

Bounds are used by ATs like Orca to implement features like Flat Review:

https://help.gnome.org/users/orca/stable/howto_flat_review.html.en

Or to determine the area of a non-presentational widget.

2 years agowidget: Implement new GtkAccessible vfuncs
Lukáš Tyrychtr [Fri, 9 Sep 2022 15:02:59 +0000 (17:02 +0200)]
widget: Implement new GtkAccessible vfuncs

2 years agoa11y: Skip non-presentable objects
Lukáš Tyrychtr [Fri, 9 Sep 2022 15:02:34 +0000 (17:02 +0200)]
a11y: Skip non-presentable objects

Don't get confused with non-presentable objects when iterating the list
of children.

2 years agoa11y: Use GtkAccessible for tree traversal
Lukáš Tyrychtr [Fri, 9 Sep 2022 12:16:20 +0000 (14:16 +0200)]
a11y: Use GtkAccessible for tree traversal

Remove the widget tree dependence from GtkAtSpiContext.

2 years agoa11y: Implement the new GtkAccessible vfuncs
Lukáš Tyrychtr [Fri, 9 Sep 2022 09:10:25 +0000 (11:10 +0200)]
a11y: Implement the new GtkAccessible vfuncs

Implement the gtk_accessible functions and begin removing the old widget
based tree calls.

2 years agoa11y: Add DOM-like API to GtkAccessible
Lukáš Tyrychtr [Fri, 9 Sep 2022 09:09:31 +0000 (11:09 +0200)]
a11y: Add DOM-like API to GtkAccessible

Add get_parent and get_child_at_index to GtkAccessible so we can
decouple the a11y tree from the widget tree.

2 years agoMerge branch 'filechooser-sidebar' into 'main'
Matthias Clasen [Fri, 3 Feb 2023 09:41:21 +0000 (09:41 +0000)]
Merge branch 'filechooser-sidebar' into 'main'

placessidebar: Make all rows ellipsize

Closes #4710

See merge request GNOME/gtk!5471

2 years agoMerge branch 'drag-button-issue' into 'main'
Carlos Garnacho [Fri, 3 Feb 2023 09:28:01 +0000 (09:28 +0000)]
Merge branch 'drag-button-issue' into 'main'

Fix button mask calculation for Wayland

Closes #5561

See merge request GNOME/gtk!5468

2 years agoplacessidebar: Make all rows ellipsize
Matthias Clasen [Fri, 3 Feb 2023 09:00:03 +0000 (10:00 +0100)]
placessidebar: Make all rows ellipsize

Otherwise, we end up with a single long row
pushing the content of all the other rows
off to the left, which is much worse than
ellipsizing.

Fixes: #4710
2 years agoNEWS: Updates
Matthias Clasen [Fri, 3 Feb 2023 08:26:50 +0000 (09:26 +0100)]
NEWS: Updates