[mutter/wip/surface-content: 9/21] window-actor: Move signal handler connections to the meta-window setter
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/surface-content: 9/21] window-actor: Move signal handler connections to the meta-window setter
- Date: Mon, 9 Dec 2013 19:07:07 +0000 (UTC)
commit 214bb7e7e39da6ca677dbacc160857a18a047c80
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 9 13:45:12 2013 -0500
window-actor: Move signal handler connections to the meta-window setter
src/compositor/meta-window-actor.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index ef15946..c87da88 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -389,11 +389,6 @@ meta_window_actor_constructed (GObject *object)
g_signal_connect_object (priv->surface, "allocation-changed",
G_CALLBACK (surface_allocation_changed_notify), self, 0);
meta_window_actor_update_shape (self);
-
- g_signal_connect_object (window, "notify::decorated",
- G_CALLBACK (window_decorated_notify), self, 0);
- g_signal_connect_object (window, "notify::appears-focused",
- G_CALLBACK (window_appears_focused_notify), self, 0);
}
else
{
@@ -495,6 +490,11 @@ meta_window_actor_set_property (GObject *object,
{
case PROP_META_WINDOW:
priv->window = g_value_dup_object (value);
+
+ g_signal_connect_object (priv->window, "notify::decorated",
+ G_CALLBACK (window_decorated_notify), self, 0);
+ g_signal_connect_object (priv->window, "notify::appears-focused",
+ G_CALLBACK (window_appears_focused_notify), self, 0);
break;
case PROP_NO_SHADOW:
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]