mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-15 00:44:22 +09:00
Merge pull request #152 from jonasmalacofilho/construct-freon-item-through-register-class
Fix issues with GNOME 3.4
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
const St = imports.gi.St;
|
||||
const GObject = imports.gi.GObject;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
const St = imports.gi.St;
|
||||
|
||||
var FreonItem = class extends PopupMenu.PopupBaseMenuItem {
|
||||
var FreonItem = GObject.registerClass(class FreonItem extends PopupMenu.PopupBaseMenuItem {
|
||||
|
||||
constructor(gIcon, key, label, value, displayName) {
|
||||
super();
|
||||
_init(gIcon, key, label, value, displayName) {
|
||||
super._init();
|
||||
this._main = false;
|
||||
this._key = key;
|
||||
this._gIcon = gIcon;
|
||||
@@ -43,4 +44,4 @@ var FreonItem = class extends PopupMenu.PopupBaseMenuItem {
|
||||
set value(value) {
|
||||
this._valueLabel.text = value;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user