shell/window-preview: Make window-container
construct-only
It is tightly coupled to the preview, and not meant to be unset or replaced during the lifetime of the object; size requests and allocation assume that it exists. Make that explicit by marking the property as construct-only. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3615>
This commit is contained in:
parent
0f9c13c55d
commit
094caeeeef
@ -53,8 +53,7 @@ shell_window_preview_set_property (GObject *gobject,
|
||||
switch (property_id)
|
||||
{
|
||||
case PROP_WINDOW_CONTAINER:
|
||||
if (g_set_object (&self->window_container, g_value_get_object (value)))
|
||||
g_object_notify_by_pspec (gobject, obj_props[PROP_WINDOW_CONTAINER]);
|
||||
g_set_object (&self->window_container, g_value_get_object (value));
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -168,7 +167,7 @@ shell_window_preview_class_init (ShellWindowPreviewClass *klass)
|
||||
g_param_spec_object ("window-container", NULL, NULL,
|
||||
CLUTTER_TYPE_ACTOR,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_EXPLICIT_NOTIFY |
|
||||
G_PARAM_CONSTRUCT_ONLY |
|
||||
G_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_properties (gobject_class, PROP_LAST, obj_props);
|
||||
|
Loading…
x
Reference in New Issue
Block a user