shell: Add getter/setters for all properties

Traditionally, getter/setter functions have been considered a
C convenience, and we therefore didn't bother to add them for
many properties that are only consumed from JS.

However now that gjs optimizes property accesses by calling the
appropriate getter/setter instead, it makes sense to add them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3620>
This commit is contained in:
Florian Müllner
2025-01-23 05:15:21 +01:00
committed by Marge Bot
parent 51b5358b71
commit 01824a6d4e
20 changed files with 373 additions and 49 deletions

View File

@ -19,6 +19,8 @@ struct _ShellWindowPreviewLayout
ShellWindowPreviewLayoutPrivate *priv;
};
ClutterActorBox * shell_window_preview_layout_get_bounding_box (ShellWindowPreviewLayout *self);
ClutterActor * shell_window_preview_layout_add_window (ShellWindowPreviewLayout *self,
MetaWindow *window);