From 99659e1d397ccb291954ccdb3f39ccfbcdd31743 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Braun Date: Sun, 21 Aug 2011 00:45:05 +0800 Subject: [PATCH] Set the status icon size with the system-status-icon style --- src/extension.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index 601d966..4bd73d8 100644 --- a/src/extension.js +++ b/src/extension.js @@ -118,9 +118,8 @@ WeatherMenuButton.prototype = { // Panel icon this._weatherIcon = new St.Icon({ icon_type: this._icon_type, - icon_size: Main.panel.actor.get_theme_node().get_height() - 2, icon_name: 'view-refresh-symbolic', - style_class: 'weather-icon' + (Main.panel.actor.get_direction() == St.TextDirection.RTL ? '-rtl' : '') + style_class: 'system-status-icon weather-icon' + (Main.panel.actor.get_direction() == St.TextDirection.RTL ? '-rtl' : '') }); // Label