Add a "toggle_recording" keybinding

Add a keybinding (defaulting to <Control><Shift><Alt>r) to record
a screencast of the session. This isn't hooked up to anything in
metacity itself, but a plugin can connect to a signal on MetaScreen.

keybindings.c all-keybindings.h: Add the keybinding
screen.c: Add a ::toggle-recording signal

http://bugzilla.gnome.org/show_bug.cgi?id=575290
This commit is contained in:
Owen W. Taylor
2009-03-13 17:06:04 -04:00
parent fb7b820187
commit 4253ff8e12
3 changed files with 23 additions and 0 deletions

View File

@@ -2853,6 +2853,17 @@ handle_panel (MetaDisplay *display,
meta_error_trap_pop (display, FALSE);
}
static void
handle_toggle_recording (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding,
gpointer dummy)
{
g_signal_emit_by_name (screen, "toggle-recording");
}
static void
handle_activate_window_menu (MetaDisplay *display,
MetaScreen *screen,