From 167abe14ebca3f9b20f278802f30cf54334a22d1 Mon Sep 17 00:00:00 2001 From: Neroth Date: Mon, 30 Apr 2012 16:27:31 +0200 Subject: [PATCH] Fix issue #8 --- src/extension.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index 335bf7a..b3c89c3 100644 --- a/src/extension.js +++ b/src/extension.js @@ -148,14 +148,14 @@ WeatherMenuButton.prototype = { switch (this._position_in_panel) { case WeatherPosition.LEFT: children = Main.panel._leftBox.get_children(); - Main.panel._leftBox.insert_actor (this.actor, children.length-1); + Main.panel._leftBox.add(this.actor, children.length-1); break; case WeatherPosition.CENTER: Main.panel._centerBox.add(this.actor, { y_fill: true }); break; case WeatherPosition.RIGHT: children = Main.panel._rightBox.get_children(); - Main.panel._rightBox.insert_actor(this.actor, children.length-1); + Main.panel._rightBox.insert_child_at_index(this.actor, 0); break; }