Permalink
Browse files

Revert "Cache icon names and tooltips, to avoid changing them unneces…

…sarily." It caused a regression when changing between fixed-size and scalable icons.

This reverts commit a84d5fb.
  • Loading branch information...
1 parent 0e49993 commit 0315b5d65b9b62ce177c56906d3adbd3158d7a67 @autarkper autarkper committed Sep 27, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 js/ui/applet.js
View
@@ -169,10 +169,8 @@ Applet.prototype = {
},
set_applet_tooltip: function (text) {
- if (this._applet_tooltip_text !== text) {
- this._applet_tooltip.set_text(text);
- this._applet_tooltip_text = text;
- }
+ this._applet_tooltip_text = text;
+ this._applet_tooltip.set_text(text);
},
on_applet_clicked: function(event) {
@@ -283,10 +281,6 @@ IconApplet.prototype = {
},
set_applet_icon_symbolic_name: function (icon_name) {
- if (this.__icon_name === icon_name) {
- return;
- }
-
if (this._scaleMode) {
let height = (this._panelHeight / DEFAULT_PANEL_HEIGHT) * PANEL_SYMBOLIC_ICON_DEFAULT_HEIGHT;
this._applet_icon = new St.Icon({icon_name: icon_name, icon_size: height, icon_type: St.IconType.SYMBOLIC, reactive: true, track_hover: true, style_class: 'system-status-icon' });

0 comments on commit 0315b5d

Please sign in to comment.