mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
window-actor: Make the meta-window property construct-only
We don't deal with setting this property at all, and it's unlikely to come up in future settings, so just don't allow setting it at all. https://bugzilla.gnome.org/show_bug.cgi?id=678989
This commit is contained in:
parent
98dbba1e17
commit
65f2e29375
@ -226,7 +226,7 @@ meta_window_actor_class_init (MetaWindowActorClass *klass)
|
|||||||
"MetaWindow",
|
"MetaWindow",
|
||||||
"The displayed MetaWindow",
|
"The displayed MetaWindow",
|
||||||
META_TYPE_WINDOW,
|
META_TYPE_WINDOW,
|
||||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
|
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_META_WINDOW,
|
PROP_META_WINDOW,
|
||||||
@ -488,11 +488,7 @@ meta_window_actor_set_property (GObject *object,
|
|||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
case PROP_META_WINDOW:
|
case PROP_META_WINDOW:
|
||||||
{
|
|
||||||
if (priv->window)
|
|
||||||
g_object_unref (priv->window);
|
|
||||||
priv->window = g_value_dup_object (value);
|
priv->window = g_value_dup_object (value);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case PROP_NO_SHADOW:
|
case PROP_NO_SHADOW:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user