From db2422cf5b42bb7f6303c06f7a98a125f6640bc9 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 02 Apr 2008 14:20:12 +0000 Subject: Make room for the accelerator labels. --- 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() -- cgit v0.9.1