gnome-shell r61 - trunk/src



Author: otaylor
Date: Wed Nov 19 22:54:42 2008
New Revision: 61
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=61&view=rev

Log:
Add a 'screen' property to ShellGlobal

Add a screen property to ShellGlobal so Javascript code can get
access to the MetaScreen.

http://bugzilla.gnome.org/show_bug.cgi?id=561297


Modified:
   trunk/src/shell-global.c

Modified: trunk/src/shell-global.c
==============================================================================
--- trunk/src/shell-global.c	(original)
+++ trunk/src/shell-global.c	Wed Nov 19 22:54:42 2008
@@ -15,6 +15,7 @@
   PROP_0,
 
   PROP_OVERLAY_GROUP,
+  PROP_SCREEN,
   PROP_SCREEN_WIDTH,
   PROP_SCREEN_HEIGHT,
   PROP_STAGE,
@@ -60,6 +61,9 @@
     case PROP_OVERLAY_GROUP:
       g_value_set_object (value, mutter_plugin_get_overlay_group (global->plugin));
       break;
+    case PROP_SCREEN:
+      g_value_set_object (value, mutter_plugin_get_screen (global->plugin));
+      break;
     case PROP_SCREEN_WIDTH:
       {
         int width, height;
@@ -127,6 +131,13 @@
                                                         CLUTTER_TYPE_ACTOR,
                                                         G_PARAM_READABLE));
   g_object_class_install_property (gobject_class,
+                                   PROP_SCREEN,
+                                   g_param_spec_object ("screen",
+                                                        "Screen",
+                                                        "Metacity screen object for the shell",
+                                                        META_TYPE_SCREEN,
+                                                        G_PARAM_READABLE));
+  g_object_class_install_property (gobject_class,
                                    PROP_SCREEN_WIDTH,
                                    g_param_spec_int ("screen-width",
                                                      "Screen Width",



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