gnome-shell-extension-KeysIndicator icon indicating copy to clipboard operation
gnome-shell-extension-KeysIndicator copied to clipboard

Does not work under gnome 3.32

Open YorozuyaDev opened this issue 6 years ago • 5 comments
trafficstars

Error when you try to install it

YorozuyaDev avatar Apr 24 '19 01:04 YorozuyaDev

Issue with Ubuntu 19.04 and gnome 3.32: gnome-shell[2214]: Extension "[email protected]" had error: TypeError: Object is of type St.BoxLayout - cannot convert to ClutterLayoutManager

gsiciliano avatar May 03 '19 06:05 gsiciliano

Same here, after updating to Fedora 30.

Shell version: 3.32.1
Extension version: 5

Haven't worked with Gnome extensions before, but If I had to make a guess, I'd say the error is happening here: https://github.com/caasiu/gnome-shell-extension-KeysIndicator/blob/b12fd1024c992da07faf45274117c7227c4633fc/keys-indicator%40caasiu.github.com/extension.js#L63-L73

BenWoodworth avatar May 05 '19 18:05 BenWoodworth

Issue with Ubuntu 19.04 and gnome 3.32: gnome-shell[2214]: Extension "[email protected]" had error: TypeError: Object is of type St.BoxLayout - cannot convert to ClutterLayoutManager

Same problem with Fedora 30 and gnome-shell-3.32

sebalinux avatar Sep 11 '19 05:09 sebalinux

Also getting an error under Gnome 3.34...

marekdedic avatar Oct 17 '19 08:10 marekdedic

Same here, after updating to Fedora 30.

Shell version: 3.32.1
Extension version: 5

Haven't worked with Gnome extensions before, but If I had to make a guess, I'd say the error is happening here: https://github.com/caasiu/gnome-shell-extension-KeysIndicator/blob/b12fd1024c992da07faf45274117c7227c4633fc/keys-indicator%40caasiu.github.com/extension.js#L63-L73

我找到了一个方法 把上述代码换成下面的

//put all the label together
let layout = new St.BoxLayout({style_class: 'box-style'})

//Todo: add 5 label using one line?
layout.add(this.keyCtrl);
layout.add(this.keyShift);
layout.add(this.keyAlt);
layout.add(this.capsLock);
layout.add(this.numLock);

this.layoutManager = layout.layout_manager;

//add the box to the panel
this.actor.add_actor(layout);

错误信息就像 @gsiciliano 说的那样 是类型转换错误 我找到了这个方法将St.BoxLayout转换为Clutter.LayoutManager Class St.BoxLayout

我的gnome-shell版本是3.34

panther1942 avatar Sep 24 '20 20:09 panther1942