shell-wm: Remove takeover_keybinding()

Introspection support is now good enough to set a custom keybinding
handler directly from JS.

https://bugzilla.gnome.org/show_bug.cgi?id=663584
This commit is contained in:
Florian Müllner
2011-11-07 02:16:15 +01:00
parent b1064cbe50
commit d714dfd82e
4 changed files with 34 additions and 104 deletions

View File

@ -132,15 +132,11 @@ function _initUserSession() {
ExtensionSystem.init();
ExtensionSystem.loadExtensions();
let shellwm = global.window_manager;
shellwm.takeover_keybinding('panel-run-dialog');
shellwm.connect('keybinding::panel-run-dialog', function () {
Meta.keybindings_set_custom_handler('panel-run-dialog', function() {
getRunDialog().open();
});
shellwm.takeover_keybinding('panel-main-menu');
shellwm.connect('keybinding::panel-main-menu', function () {
Meta.keybindings_set_custom_handler('panel-main-menu', function () {
overview.toggle();
});