Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-08-30 13:14:06 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-08-30 13:55:43 (GMT)
commit0501c03981b6656aafed5ab5c6218d576ef2695d (patch)
treed0104ea4def68a5ff74f16651e46b0d1c6a10040
parent857f5658a17ba63e3767dab39f99568c3cf7be5d (diff)
Position DocumentsButton correctly in the VolumesToolbar
Signed-off-by: Simon Schampijer <simon@laptop.org> Tested-By: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--src/jarabe/journal/volumestoolbar.py3
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()