mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
use ClutterActor's expand/align properties
BoxLayout meta child (expand/align) properties have long been depracated and recently fully removed in gnome shell 3.37.2 (!1274), in favor of ClutterActor's ones. Embrace the change to provide compatibility with upcoming gnome shell 3.38 release
This commit is contained in:
@@ -483,14 +483,14 @@ const FreonMenuButton = GObject.registerClass(class Freon_FreonMenuButton extend
|
||||
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
|
||||
let wiki = new PopupMenu.PopupBaseMenuItem();
|
||||
wiki.actor.add(new St.Label({ text: _("Go to the Freon wiki") }), { expand: true, x_fill: false });
|
||||
wiki.actor.add_child(new St.Label({ text: _("Go to the Freon wiki"), x_align: Clutter.ActorAlign.CENTER, x_expand: true }));
|
||||
wiki.connect('activate', function () {
|
||||
Util.spawn(["xdg-open", "https://github.com/UshakovVasilii/gnome-shell-extension-freon/wiki"]);
|
||||
});
|
||||
this.menu.addMenuItem(wiki);
|
||||
|
||||
let settings = new PopupMenu.PopupBaseMenuItem();
|
||||
settings.actor.add(new St.Label({ text: _("Sensor Settings") }), { expand: true, x_fill: false });
|
||||
settings.actor.add_child(new St.Label({ text: _("Sensor Settings"), x_align: Clutter.ActorAlign.CENTER, x_expand: true }));
|
||||
settings.connect('activate', function () {
|
||||
Util.spawn(["gnome-extensions", "prefs", Me.metadata.uuid]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user