>From 089017d7ac280f182c99832c8ea0b005ad9f9263 Mon Sep 17 00:00:00 2001
From: Simon Schampijer <simon@schampijer.de>
Date: Tue, 30 Aug 2011 15:14:06 +0200
Subject: [PATCH sugar] Position DocumentsButton correctly in the
 VolumesToolbar
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>

Signed-off-by: Simon Schampijer <simon@laptop.org>
---
 src/jarabe/journal/volumestoolbar.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/jarabe/journal/volumestoolbar.py b/src/jarabe/journal/volumestoolbar.py
index 7a34e18..84d9e31 100644
--- a/src/jarabe/journal/volumestoolbar.py
+++ b/src/jarabe/journal/volumestoolbar.py
@@ -232,7 +232,8 @@ class VolumesToolbar(gtk.Toolbar):
             button.connect('toggled', self._button_toggled_cb)
             button.show()
 
-            self.insert(button, -1)
+            position = self.get_item_index(self._volume_buttons[-1]) + 1
+            self.insert(button, position)
             self._volume_buttons.append(button)
             self.show()
 
-- 
1.7.4.4

