[gnome-shell] Adapt to new Mutter plugin initialization method



commit 7467e9e3a52dd9df2f45a48d937169475e5d98cd
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Apr 12 17:59:44 2010 -0400

    Adapt to new Mutter plugin initialization method
    
    With the changes from bug 615586, Mutter now expects a separate start()
    method which is called after construction. Move our initialization from
    constructed() to start() so it can access the MetaScreen.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=615592

 src/gnome-shell-plugin.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c
index 011f6ff..899c713 100644
--- a/src/gnome-shell-plugin.c
+++ b/src/gnome-shell-plugin.c
@@ -45,10 +45,10 @@
 #include "shell-global-private.h"
 #include "shell-wm.h"
 
-static void gnome_shell_plugin_constructed (GObject *object);
 static void gnome_shell_plugin_dispose     (GObject *object);
 static void gnome_shell_plugin_finalize    (GObject *object);
 
+static void     gnome_shell_plugin_start            (MutterPlugin         *plugin);
 static void     gnome_shell_plugin_minimize         (MutterPlugin         *plugin,
                                                      MutterWindow         *actor);
 static void     gnome_shell_plugin_maximize         (MutterPlugin         *plugin,
@@ -118,10 +118,10 @@ gnome_shell_plugin_class_init (GnomeShellPluginClass *klass)
   GObjectClass      *gobject_class = G_OBJECT_CLASS (klass);
   MutterPluginClass *plugin_class  = MUTTER_PLUGIN_CLASS (klass);
 
-  gobject_class->constructed     = gnome_shell_plugin_constructed;
   gobject_class->dispose         = gnome_shell_plugin_dispose;
   gobject_class->finalize        = gnome_shell_plugin_finalize;
 
+  plugin_class->start            = gnome_shell_plugin_start;
   plugin_class->map              = gnome_shell_plugin_map;
   plugin_class->minimize         = gnome_shell_plugin_minimize;
   plugin_class->maximize         = gnome_shell_plugin_maximize;
@@ -142,10 +142,9 @@ gnome_shell_plugin_init (GnomeShellPlugin *shell_plugin)
 }
 
 static void
-gnome_shell_plugin_constructed (GObject *object)
+gnome_shell_plugin_start (MutterPlugin *plugin)
 {
-  MutterPlugin *plugin = MUTTER_PLUGIN (object);
-  GnomeShellPlugin *shell_plugin = GNOME_SHELL_PLUGIN (object);
+  GnomeShellPlugin *shell_plugin = GNOME_SHELL_PLUGIN (plugin);
   MetaScreen *screen;
   MetaDisplay *display;
   GError *error = NULL;



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