Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-04-02 14:20:12 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-04-02 14:20:12 (GMT)
commitdb2422cf5b42bb7f6303c06f7a98a125f6640bc9 (patch)
tree6707c00a01f1595bb4b948c1136b4e7c73dfb87a /sugar/graphics
parentbb924b48cd8970dadddf01456e5a0c40a825754a (diff)
Make room for the accelerator labels.
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/palette.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py
index 7c9f357..40e66da 100644
--- a/sugar/graphics/palette.py
+++ b/sugar/graphics/palette.py
@@ -177,7 +177,7 @@ class Palette(gtk.Window):
labels_box = gtk.VBox()
self._label_alignment = gtk.Alignment(xalign=0, yalign=0.5,
- xscale=0, yscale=0.33)
+ xscale=1, yscale=0.33)
self._label_alignment.set_padding(0, 0, style.DEFAULT_SPACING,
style.DEFAULT_SPACING)
self._label_alignment.add(labels_box)
@@ -426,7 +426,7 @@ class Palette(gtk.Window):
gtk.Window.do_size_request(self, requisition)
# gtk.AccelLabel request doesn't include the accelerator.
- label_width = self._label.size_request()[0] + \
+ label_width = self._label_alignment.size_request()[0] + \
self._label.get_accel_width() + \
2 * self.get_border_width()