Skip to content

Commit

Permalink
Fix for cinnamon 3.8 (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanalderson authored and jaszhix committed May 5, 2018
1 parent dbeac5e commit dadb2c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -93,7 +93,7 @@ GridStyle.prototype = {
this.table = new St.Table({homogeneous: false, reactive: true });
this.applet.actor.add(this.table);

btn_height = this.height/this.rows;
let btn_height = this.height/this.rows;
this.button = [];
for(let r=0; r < this.rows; r++) {
for(let c=0; c < this.cols; c++) {
Expand Down
8 changes: 4 additions & 4 deletions workspace-grid@hernejj/files/workspace-grid@hernejj/applet.js
Expand Up @@ -27,15 +27,15 @@ if (typeof require !== 'undefined') {
function registerKeyBindings(registerUpDownKeyBindings) {
try {
if (registerUpDownKeyBindings) {
Meta.keybindings_set_custom_handler('switch-to-workspace-up', Lang.bind(this, switchWorkspace));
Meta.keybindings_set_custom_handler('switch-to-workspace-down', Lang.bind(this, switchWorkspace));
Meta.keybindings_set_custom_handler('switch-to-workspace-up', switchWorkspace);
Meta.keybindings_set_custom_handler('switch-to-workspace-down', switchWorkspace);
}
else {
Meta.keybindings_set_custom_handler('switch-to-workspace-up', Lang.bind(Main.wm, Main.wm._showWorkspaceSwitcher));
Meta.keybindings_set_custom_handler('switch-to-workspace-down', Lang.bind(Main.wm, Main.wm._showWorkspaceSwitcher));
}
Meta.keybindings_set_custom_handler('switch-to-workspace-left', Lang.bind(this, switchWorkspace));
Meta.keybindings_set_custom_handler('switch-to-workspace-right', Lang.bind(this, switchWorkspace));
Meta.keybindings_set_custom_handler('switch-to-workspace-left', switchWorkspace);
Meta.keybindings_set_custom_handler('switch-to-workspace-right', switchWorkspace);
}
catch (e) {
global.log("workspace-grid@hernejj: Registering keybindings failed!");
Expand Down

0 comments on commit dadb2c8

Please sign in to comment.