Skip to content

Commit

Permalink
fix status label for gnome 3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
UshakovVasilii committed Oct 9, 2015
1 parent 414edac commit 2dbddc7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions freon@UshakovVasilii_Github.yahoo.com/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,13 @@ const FreonMenuButton = new Lang.Class({
if(!temperatureGroup) {
temperatureGroup = new PopupMenu.PopupSubMenuMenuItem(_('Temperature Sensors'), true);
temperatureGroup.icon.gicon = this._sensorIcons['temperature'];
if(!temperatureGroup.status) { // gnome 3.18 and hight
temperatureGroup.status = new St.Label({
style_class: 'popup-status-menu-item',
y_expand: true,
y_align: Clutter.ActorAlign.CENTER });
temperatureGroup.actor.insert_child_at_index(temperatureGroup.status, 4);
}
this.menu.addMenuItem(temperatureGroup);
}
temperatureGroup.menu.addMenuItem(item);
Expand Down

0 comments on commit 2dbddc7

Please sign in to comment.