[mutter/gbsneto/cleanup-x11-from-window-actor: 10/10] window-actor: Turn into an abstract class



commit 4423362ee9fbc1b6da913bdb31383cd4ba70372a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jan 3 16:17:08 2019 -0200

    window-actor: Turn into an abstract class
    
    Now that everything is settled, from the initialization
    process to the subclasses to moving code to the compositor,
    MetaWindowActor can be a proper abstract class that cannot
    be instantiated.
    
    Thus, make MetaWindowActor an abstract class.

 src/compositor/meta-window-actor.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 2f791416e..c8cf1fd60 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -145,10 +145,10 @@ static void cullable_iface_init (MetaCullableInterface *iface);
 
 static void screen_cast_window_iface_init (MetaScreenCastWindowInterface *iface);
 
-G_DEFINE_TYPE_WITH_CODE (MetaWindowActor, meta_window_actor, CLUTTER_TYPE_ACTOR,
-                         G_ADD_PRIVATE (MetaWindowActor)
-                         G_IMPLEMENT_INTERFACE (META_TYPE_CULLABLE, cullable_iface_init)
-                         G_IMPLEMENT_INTERFACE (META_TYPE_SCREEN_CAST_WINDOW, 
screen_cast_window_iface_init));
+G_DEFINE_ABSTRACT_TYPE_WITH_CODE (MetaWindowActor, meta_window_actor, CLUTTER_TYPE_ACTOR,
+                                  G_ADD_PRIVATE (MetaWindowActor)
+                                  G_IMPLEMENT_INTERFACE (META_TYPE_CULLABLE, cullable_iface_init)
+                                  G_IMPLEMENT_INTERFACE (META_TYPE_SCREEN_CAST_WINDOW, 
screen_cast_window_iface_init));
 
 static void
 meta_window_actor_real_set_surface_actor (MetaWindowActor  *actor,


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