From f79e5ad42b6e0ac45a96103830dba31cac6d66b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 22 Jan 2025 15:56:47 +0100 Subject: [PATCH] shell/global: Use consistent type for properties/getters gjs now optimizes property accesses if possible, by calling the corresponding getter/setter method. For this to work, the method not only has to exist (obviously), but also match the type of the corresponding property. For some reason the `Global.stage` property is defined as `Clutter.Actor` instead of `Clutter.Stage`, which is returned by the getter. Fix that so that both property and getter use the more specific type. Part-of: --- src/shell-global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-global.c b/src/shell-global.c index 695f699b7..b955733d6 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -587,7 +587,7 @@ shell_global_class_init (ShellGlobalClass *klass) props[PROP_STAGE] = g_param_spec_object ("stage", NULL, NULL, - CLUTTER_TYPE_ACTOR, + CLUTTER_TYPE_STAGE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); props[PROP_WINDOW_GROUP] =