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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3620>
This commit is contained in:
parent
ef4af961bf
commit
f79e5ad42b
@ -587,7 +587,7 @@ shell_global_class_init (ShellGlobalClass *klass)
|
|||||||
|
|
||||||
props[PROP_STAGE] =
|
props[PROP_STAGE] =
|
||||||
g_param_spec_object ("stage", NULL, NULL,
|
g_param_spec_object ("stage", NULL, NULL,
|
||||||
CLUTTER_TYPE_ACTOR,
|
CLUTTER_TYPE_STAGE,
|
||||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
|
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
|
||||||
|
|
||||||
props[PROP_WINDOW_GROUP] =
|
props[PROP_WINDOW_GROUP] =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user