[gnome-shell] shell-global: remove "gratuitous" meta_plugin_* calls



commit 7765d6a08f8b9b8358ce001c3b79d76025a9a40e
Author: Dan Winship <danw gnome org>
Date:   Thu Mar 24 16:12:33 2011 -0400

    shell-global: remove "gratuitous" meta_plugin_* calls
    
    MetaPlugin wraps a bunch of compositor (and plain metacity) methods
    that we can just call ourselves, so just do that. (Presumably this
    dates back to some ancient time when it was imagined that plugins
    wouldn't need access to the full metacity API.)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=654639

 src/shell-global.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 3370b42..ac588d2 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -153,7 +153,7 @@ shell_global_get_property(GObject         *object,
   switch (prop_id)
     {
     case PROP_OVERLAY_GROUP:
-      g_value_set_object (value, meta_plugin_get_overlay_group (global->plugin));
+      g_value_set_object (value, meta_get_overlay_group_for_screen (global->meta_screen));
       break;
     case PROP_SCREEN:
       g_value_set_object (value, global->meta_screen);
@@ -168,7 +168,7 @@ shell_global_get_property(GObject         *object,
       {
         int width, height;
 
-        meta_plugin_query_screen_size (global->plugin, &width, &height);
+        meta_screen_get_size (global->meta_screen, &width, &height);
         g_value_set_int (value, width);
       }
       break;
@@ -176,7 +176,7 @@ shell_global_get_property(GObject         *object,
       {
         int width, height;
 
-        meta_plugin_query_screen_size (global->plugin, &width, &height);
+        meta_screen_get_size (global->meta_screen, &width, &height);
         g_value_set_int (value, height);
       }
       break;
@@ -187,10 +187,10 @@ shell_global_get_property(GObject         *object,
       g_value_set_enum (value, global->input_mode);
       break;
     case PROP_WINDOW_GROUP:
-      g_value_set_object (value, meta_plugin_get_window_group (global->plugin));
+      g_value_set_object (value, meta_get_window_group_for_screen (global->meta_screen));
       break;
     case PROP_BACKGROUND_ACTOR:
-      g_value_set_object (value, meta_plugin_get_background_actor (global->plugin));
+      g_value_set_object (value, meta_get_background_actor_for_screen (global->meta_screen));
       break;
     case PROP_WINDOW_MANAGER:
       g_value_set_object (value, global->wm);
@@ -702,7 +702,7 @@ shell_global_get_window_actors (ShellGlobal *global)
 {
   g_return_val_if_fail (SHELL_IS_GLOBAL (global), NULL);
 
-  return meta_plugin_get_window_actors (global->plugin);
+  return meta_get_window_actors (global->meta_screen);
 }
 
 static void



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