[mutter/wip/mult-window-actors: 8/10] window-actor: Make the meta-window property construct-only
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/mult-window-actors: 8/10] window-actor: Make the meta-window property construct-only
- Date: Fri, 6 Dec 2013 20:40:51 +0000 (UTC)
commit 26077da0680b4d32a1c307f71f84dea960c1ba40
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 23 18:54:46 2012 -0400
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
src/compositor/meta-window-actor.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index d3b8014..3921efa 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -213,7 +213,7 @@ meta_window_actor_class_init (MetaWindowActorClass *klass)
"MetaWindow",
"The displayed MetaWindow",
META_TYPE_WINDOW,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (object_class,
PROP_META_WINDOW,
@@ -433,11 +433,7 @@ meta_window_actor_set_property (GObject *object,
switch (prop_id)
{
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;
case PROP_NO_SHADOW:
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]