Initial commit

A plugin for metacity-clutter (mutter) that initializes Javascript
and via Javascript adds an object to the mutter scene graph.

src/gnome-shell-plugin.c: metacity-clutter-plugin
src/shell-global.[ch]: Simple global-information object
js/: Directory for javascript
scripts/start-in-Xephyr: Launch metacity with our plugin
  "nested" within an Xephy X server

svn path=/trunk/; revision=2
This commit is contained in:
Owen Taylor
2008-10-31 04:22:44 +00:00
commit 4ba985b484
15 changed files with 1544 additions and 0 deletions

58
src/shell-global.c Normal file
View File

@ -0,0 +1,58 @@
#include "shell-global.h"
struct _ShellGlobal {
GObject parent;
ClutterActor *overlay_group;
};
struct _ShellGlobalClass {
GObjectClass parent_class;
};
G_DEFINE_TYPE(ShellGlobal, shell_global, G_TYPE_OBJECT);
static void
shell_global_init(ShellGlobal *global)
{
}
static void
shell_global_class_init(ShellGlobalClass *klass)
{
}
ShellGlobal *
shell_global_get (void)
{
static ShellGlobal *the_object = NULL;
if (!the_object)
the_object = g_object_new (SHELL_TYPE_GLOBAL, 0);
return the_object;
}
void
shell_global_set_overlay_group (ShellGlobal *global,
ClutterActor *overlay_group)
{
g_object_ref (overlay_group);
if (global->overlay_group)
g_object_unref(global->overlay_group);
global->overlay_group = overlay_group;
}
ClutterActor *
shell_global_get_overlay_group (ShellGlobal *global)
{
return global->overlay_group;
}
void
shell_global_print_hello (ShellGlobal *global)
{
g_print("Hello World!\n");
}