First stab at showing windows in the overlay

shell-global.[ch]: Add shell_global_get_windows() to get
  the list of all MutterWindow for the  screen
Makefile.am: Include the metacity typelib so that we can
  reference the MutterWindow type
js/ui/overlay.js: Cascade the open windows, scaled down
  in the overlay

svn path=/trunk/; revision=24
This commit is contained in:
Owen Taylor
2008-11-02 04:18:41 +00:00
parent 1ce78680b1
commit e624b2a241
5 changed files with 81 additions and 6 deletions

View File

@ -38,6 +38,7 @@ Shell-0.1.gir: libgnome-shell-introspect.la $(libgnome_shell_la_SOURCES)
--nsversion=0.1 \
--include=GObject-2.0 \
--include=Clutter-0.8 \
--include=Meta-2.25 \
--library=gnome-shell-introspect \
$(libgnome_shell_la_SOURCES) \
$(INCLUDES) \

View File

@ -14,6 +14,11 @@ mutter_plugin_get_stage (MutterPlugin *plugin)
return NULL;
}
GList *
mutter_plugin_get_windows (MutterPlugin *plugin)
{
}
void
mutter_plugin_query_screen_size (MutterPlugin *plugin,
int *width,

View File

@ -159,6 +159,21 @@ shell_global_set_stage_input_area (ShellGlobal *global,
mutter_plugin_set_stage_input_area (global->plugin, x, y, width, height);
}
/**
* shell_global_get_windows:
*
* Gets the list of MutterWindows for the plugin's screen
*
* Return value: (element-type MutterWindow) (transfer none): the list of windows
*/
GList *
shell_global_get_windows (ShellGlobal *global)
{
g_return_if_fail (SHELL_IS_GLOBAL (global));
return mutter_plugin_get_windows (global->plugin);
}
void
_shell_global_set_plugin (ShellGlobal *global,
MutterPlugin *plugin)

View File

@ -21,12 +21,13 @@ GType shell_global_get_type (void) G_GNUC_CONST;
ShellGlobal *shell_global_get (void);
void
shell_global_set_stage_input_area (ShellGlobal *global,
int x,
int y,
int width,
int height);
void shell_global_set_stage_input_area (ShellGlobal *global,
int x,
int y,
int width,
int height);
GList *shell_global_get_windows (ShellGlobal *global);
void _shell_global_set_plugin (ShellGlobal *global,
MutterPlugin *plugin);