windowManager: Take over <super>m keybinding to toggle calendar

It's where all the fun is happening nowadays ...

https://bugzilla.gnome.org/show_bug.cgi?id=744850
This commit is contained in:
Florian Müllner
2015-02-18 02:52:07 +01:00
parent 06586eb95d
commit 08d2e617e1
4 changed files with 22 additions and 11 deletions

View File

@ -834,6 +834,13 @@ const WindowManager = new Lang.Class({
Shell.ActionMode.TOPBAR_POPUP,
Lang.bind(this, this._toggleAppMenu));
this.addKeybinding('toggle-message-tray',
new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Shell.ActionMode.NORMAL |
Shell.ActionMode.TOPBAR_POPUP,
Lang.bind(this, this._toggleCalendar));
global.display.connect('show-resize-popup', Lang.bind(this, this._showResizePopup));
Main.overview.connect('showing', Lang.bind(this, function() {
@ -1514,6 +1521,10 @@ const WindowManager = new Lang.Class({
Main.panel.toggleAppMenu();
},
_toggleCalendar: function(display, screen, window, event, binding) {
Main.panel.toggleCalendar();
},
_toggleTweens: function() {
this._tweensPaused = !this._tweensPaused;
const OrigTweener = imports.tweener.tweener;