From 29b517e17c4f0abd13424a192dc7d58ddb212e9b Mon Sep 17 00:00:00 2001 From: simon04 Date: Sat, 11 Jun 2011 17:13:26 +0200 Subject: [PATCH] Fixes issue #9 (failure when no 'Activities' present). --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 4a74722..dc297cd 100644 --- a/src/extension.js +++ b/src/extension.js @@ -117,7 +117,7 @@ WeatherMenuButton.prototype = { // Panel icon this._weatherIcon = new St.Icon({ icon_type: this._icon_type, - icon_size: Main.panel.button.get_child().height, + 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' : '') });