[mutter/wip/mult-window-actors: 8/9] window-actor: Remove meta-screen property



commit 08d23db068ffcf7af3bcc8581084ca4ac18f0dde
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Apr 23 18:52:20 2012 -0400

    window-actor: Remove meta-screen property
    
    This can be inferred from the window. Don't allow anybody to set it.

 src/compositor/meta-window-actor.c |   25 ++++---------------------
 1 files changed, 4 insertions(+), 21 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 331e598..3383344 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -183,15 +183,6 @@ meta_window_actor_class_init (MetaWindowActorClass *klass)
                                    PROP_META_WINDOW,
                                    pspec);
 
-  pspec = g_param_spec_pointer ("meta-screen",
-				"MetaScreen",
-				"MetaScreen",
-				G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
-
-  g_object_class_install_property (object_class,
-                                   PROP_META_SCREEN,
-                                   pspec);
-
   pspec = g_param_spec_boolean ("no-shadow",
                                 "No shadow",
                                 "Do not add shaddow to this window",
@@ -390,9 +381,6 @@ meta_window_actor_set_property (GObject      *object,
         priv->window = g_value_dup_object (value);
       }
       break;
-    case PROP_META_SCREEN:
-      priv->screen = g_value_get_pointer (value);
-      break;
     case PROP_NO_SHADOW:
       {
         gboolean newv = g_value_get_boolean (value);
@@ -437,9 +425,6 @@ meta_window_actor_get_property (GObject      *object,
     case PROP_META_WINDOW:
       g_value_set_object (value, priv->window);
       break;
-    case PROP_META_SCREEN:
-      g_value_set_pointer (value, priv->screen);
-      break;
     case PROP_NO_SHADOW:
       g_value_set_boolean (value, priv->no_shadow);
       break;
@@ -895,10 +880,10 @@ meta_window_actor_constructed (GObject *object)
 {
   MetaWindowActor        *self     = META_WINDOW_ACTOR (object);
   MetaWindowActorPrivate *priv     = self->priv;
-  MetaScreen             *screen   = priv->screen;
-  MetaDisplay            *display  = meta_screen_get_display (screen);
   MetaWindow             *window   = priv->window;
   MetaFrame              *frame    = meta_window_get_frame (window);
+  MetaScreen             *screen   = meta_window_get_screen (window);
+  MetaDisplay            *display  = meta_screen_get_display (screen);
   Display                *xdisplay = meta_display_get_xdisplay (display);
   XRenderPictFormat      *format;
   Window                  xwindow;
@@ -910,6 +895,7 @@ meta_window_actor_constructed (GObject *object)
 
   priv->damage = XDamageCreate (xdisplay, xwindow,
                                 XDamageReportBoundingBox);
+  priv->screen = screen;
 
   format = XRenderFindVisualFormat (xdisplay, window->xvisual);
 
@@ -1435,11 +1421,8 @@ meta_window_actor_unmaximize (MetaWindowActor   *self,
 MetaWindowActor *
 meta_window_actor_new (MetaWindow *window)
 {
-  MetaScreen	 	 *screen = meta_window_get_screen (window);
-
   return g_object_new (META_TYPE_WINDOW_ACTOR,
-                       "meta-window",         window,
-                       "meta-screen",         screen,
+                       "meta-window", window,
                        NULL);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]