Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/helpbutton.py
diff options
context:
space:
mode:
Diffstat (limited to 'helpbutton.py')
-rw-r--r--helpbutton.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/helpbutton.py b/helpbutton.py
index f27af70..639159d 100644
--- a/helpbutton.py
+++ b/helpbutton.py
@@ -39,14 +39,18 @@ class HelpButton(gtk.ToolItem):
self._palette = help_button.get_palette()
sw = gtk.ScrolledWindow()
- sw.set_size_request(int(gtk.gdk.screen_width() / 3),
+ sw.set_size_request(int(gtk.gdk.screen_width() / 2.8),
gtk.gdk.screen_height() - style.GRID_CELL_SIZE * 3)
sw.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
self._max_text_width = int(gtk.gdk.screen_width() / 3) - 20
self._vbox = gtk.VBox()
self._vbox.set_homogeneous(False)
- sw.add_with_viewport(self._vbox)
+
+ hbox = gtk.HBox()
+ hbox.pack_start(self._vbox, False, True, 0)
+
+ sw.add_with_viewport(hbox)
self._palette.set_content(sw)
sw.show_all()