[gnome-shell-extensions/wip/fmuellner/fix-113-master: 3/17] window-list: Adjust to gnome-shell changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/fmuellner/fix-113-master: 3/17] window-list: Adjust to gnome-shell changes
- Date: Mon, 12 Nov 2018 23:42:23 +0000 (UTC)
commit 821cbf9328d95962a0807dd895e89fe2b0e8e56e
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Oct 10 10:42:45 2018 +0200
window-list: Adjust to gnome-shell changes
PanelMenu.Button is now a GObject subclass, so initialization must
happen in _init() rather than constructor().
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/113
extensions/window-list/extension.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index b8ab37b..2cf8a6a 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -1,6 +1,7 @@
const Clutter = imports.gi.Clutter;
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
+const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
@@ -641,9 +642,10 @@ class AppButton extends BaseButton {
};
+let WorkspaceIndicator = GObject.registerClass(
class WorkspaceIndicator extends PanelMenu.Button {
- constructor() {
- super(0.0, _("Workspace Indicator"), true);
+ _init() {
+ super._init(0.0, _("Workspace Indicator"), true);
this.setMenu(new PopupMenu.PopupMenu(this.actor, 0.0, St.Side.BOTTOM));
this.actor.add_style_class_name('window-list-workspace-indicator');
this.menu.actor.remove_style_class_name('panel-menu');
@@ -759,7 +761,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
if (actor.get_n_children() > 0)
actor.get_first_child().allocate(box, flags);
}
-};
+});
class WindowList {
constructor(perMonitor, monitor) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]