From 3127f3350c3b4d5f080421f71bc4ae07b9e7ee8a Mon Sep 17 00:00:00 2001 From: xRamses Date: Thu, 10 Oct 2013 08:20:47 +0200 Subject: [PATCH] Fix for gnome 3.10 --- src/extension.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/extension.js b/src/extension.js index 22adee7..8c56fc0 100644 --- a/src/extension.js +++ b/src/extension.js @@ -27,9 +27,9 @@ const SensorsItem = new Lang.Class({ this._label = label; this._value = value; - this.addActor(new St.Icon({ style_class: 'system-status-icon', icon_name: 'sensors-'+type+'-symbolic' })); - this.addActor(new St.Label({text: label})); - this.addActor(new St.Label({text: value}), {align: St.Align.END}); + this.actor.add(new St.Icon({ style_class: 'system-status-icon', icon_name: 'sensors-'+type+'-symbolic' })); + this.actor.add(new St.Label({text: label})); + this.actor.add(new St.Label({text: value}), {align: St.Align.END}); }, getPanelString: function() { @@ -52,10 +52,10 @@ const SensorsItem = new Lang.Class({ const SensorsMenuButton = new Lang.Class({ Name: 'SensorsMenuButton', - Extends: PanelMenu.SystemStatusButton, + Extends: PanelMenu.Button, _init: function(){ - PanelMenu.SystemStatusButton.prototype._init.call(this, 'sensorsMenu'); + this.parent(0.0, 'sensorMenu'); this._sensorsOutput = ''; this._hddtempOutput = ''; @@ -191,8 +191,8 @@ const SensorsMenuButton = new Lang.Class({ let item = new PopupMenu.PopupBaseMenuItem(); // HACK: span and expand parameters don't work as expected on Label, so add an invisible // Label to switch columns and not totally break the layout. - item.addActor(new St.Label({ text: '' })); - item.addActor(new St.Label({ text: _("Sensors Settings") })); + item.actor.add(new St.Label({ text: '' })); + item.actor.add(new St.Label({ text: _("Sensors Settings") })); item.connect('activate', function () { if (_gsmPrefs.get_state() == _gsmPrefs.SHELL_APP_STATE_RUNNING){ _gsmPrefs.activate();