added toggle-recording-action

This commit is contained in:
Garden Gnome 2012-06-01 13:57:40 +01:00
parent 8f9d154973
commit 1a29a1a5f0
3 changed files with 13 additions and 0 deletions

View File

@ -31,6 +31,11 @@
<summary>Panel main menu action</summary>
<description>Sets the command to run when the panel-main-menu keybinding is pressed</description>
</key>
<key type="s" name="toggle-recording-action">
<default>''</default>
<summary></summary>
<description></description>
</key>
<key type="s" name="theme">
<default>'elementary'</default>
<summary></summary>

View File

@ -73,6 +73,13 @@ namespace Gala
Settings.get_default().panel_main_menu_action);
} catch (Error e) { warning (e.message); }
});
KeyBinding.set_custom_handler ("toggle-recording", () => {
try {
Process.spawn_command_line_async (
Settings.get_default().toggle_recording_action);
} catch (Error e) { warning (e.message); }
});
KeyBinding.set_custom_handler ("switch-windows", winswitcher.handle_switch_windows);
KeyBinding.set_custom_handler ("switch-windows-backward", winswitcher.handle_switch_windows);

View File

@ -25,6 +25,7 @@ namespace Gala
public bool enable_animations { get; set; }
public string panel_main_menu_action { get; set; }
public string theme { get; set; }
public string toggle_recording_action { get; set; }
public bool use_gnome_defaults { get; set; }
public bool enable_manager_corner { get; set; }