Skip to content
Permalink
Browse files
About my computer: fix section width.
On Ubuntu 16.04 with Sugar 0.109, and Ubuntu 14.04.2 or Fedora 20 with
Sugar 0.105.3, with a display of 1200x900 or 1366x768 pixels, clicking
on about my computer widens the control panel to the screen width.

This widening is unnecessary.

It also causes a brief flash of the control panel icons moved left.

All other control panel icons keep the control panel the same size.

On Fedora 18 with a display of 1200x900 pixels, there is no problem.

Fix is to specify a maximum text width, which is then ignored.

The mechanism for the fix is not understood.
  • Loading branch information
quozl committed Jul 15, 2016
1 parent 24626be commit 9906fc9
Showing 1 changed file with 1 addition and 0 deletions.
@@ -173,6 +173,7 @@ def _setup_copyright(self):
' certain conditions described therein.')
label_info = Gtk.Label(label=info_text)
label_info.set_alignment(0, 0)
label_info.set_max_width_chars(80)
label_info.set_line_wrap(True)
label_info.set_size_request(Gdk.Screen.width() / 2, -1)
label_info.show()

0 comments on commit 9906fc9

Please sign in to comment.