mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
Merge pull request #188 from mokilcde/master
fix "Error meta is null on Gnome 3.38"
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const GObject = imports.gi.GObject;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
const St = imports.gi.St;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
|
||||
var FreonItem = GObject.registerClass(class FreonItem extends PopupMenu.PopupBaseMenuItem {
|
||||
|
||||
@@ -10,9 +11,9 @@ var FreonItem = GObject.registerClass(class FreonItem extends PopupMenu.PopupBas
|
||||
this._key = key;
|
||||
this._gIcon = gIcon;
|
||||
|
||||
this._labelActor = new St.Label({text: displayName ? displayName : label});
|
||||
this._labelActor = new St.Label({text: displayName ? displayName : label, x_align: Clutter.ActorAlign.CENTER, x_expand: true});
|
||||
this.actor.add(new St.Icon({ style_class: 'popup-menu-icon', gicon : gIcon}));
|
||||
this.actor.add(this._labelActor, {x_fill: true, expand: true});
|
||||
this.actor.add_child(this._labelActor);
|
||||
this._valueLabel = new St.Label({text: value});
|
||||
this.actor.add(this._valueLabel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user