Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/toolbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/graphics/toolbox.py')
-rw-r--r--sugar/graphics/toolbox.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py
index e5ae141..4897add 100644
--- a/sugar/graphics/toolbox.py
+++ b/sugar/graphics/toolbox.py
@@ -19,7 +19,6 @@ import gtk
import gobject
import hippo
-from sugar.graphics.toolbutton import ToolButton
from sugar.graphics import style
class Toolbox(gtk.VBox):
@@ -60,7 +59,7 @@ class Toolbox(gtk.VBox):
def add_toolbar(self, name, toolbar):
label = gtk.Label(name)
- width, height = label.size_request()
+ width = label.size_request()[0]
label.set_size_request(max(width, style.TOOLBOX_TAB_LABEL_WIDTH), -1)
label.set_alignment(0.0, 0.5)