From 02eb05235ca0edbb6e5b041719d742ac822b2889 Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Sun, 13 May 2012 16:57:07 +0000 Subject: Fix help button scrollbar bug Signed-off-by: Agustin Zubiaga Signed-off-by: Daniel Francis --- 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() -- cgit v0.9.1