Skip to content

Commit

Permalink
Apply the properly cinnamon style selector to the indicator icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
lestcape committed Nov 14, 2015
1 parent ab09e94 commit 233d07f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions js/ui/indicatorManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,13 +1068,16 @@ IndicatorActor.prototype = {
if (draggableParent && (!draggableParent.inhibit))
return false;

if ((event.get_button() == 1) && behavior && this._menu) {
this._menu.toggle();
} else if (event.get_button() == 1) {
this._indicator.open();
} else if (this._menu) {
if (behavior) {
if ((event.get_button() == 3) && this._menu) {
this._menu.toggle();
return true;
} else if (event.get_button() == 1) {
this._menu.close();
this._indicator.open();
}
} else if ((event.get_button() == 1) && this._menu) {
this._menu.toggle();
return true;
}
return false;
},
Expand Down Expand Up @@ -1151,7 +1154,7 @@ IndicatorActor.prototype = {
}

if (gicon)
return new St.Icon({ gicon: gicon, icon_size: realSize });
return new St.Icon({ style_class: 'applet-icon', gicon: gicon, icon_size: realSize });
else
return null;
},
Expand Down Expand Up @@ -1192,6 +1195,7 @@ IndicatorActor.prototype = {
rowstride);

return new Clutter.Actor({
style_class: 'applet-icon',
width: Math.min(width, iconSize),
height: Math.min(height, iconSize),
content: image
Expand Down

0 comments on commit 233d07f

Please sign in to comment.