#6929 NORM 8.2.0 (: Sugar should include a string that explains that it is free software and under the GPL

Zarro Boogs per Child bugtracker at laptop.org
Tue Aug 26 16:24:35 EDT 2008


#6929: Sugar should include a string that explains that it is free software and
under the GPL
----------------------+-----------------------------------------------------
   Reporter:  mako    |       Owner:  dsd                 
       Type:  defect  |      Status:  new                 
   Priority:  normal  |   Milestone:  8.2.0 (was Update.2)
  Component:  sugar   |     Version:                      
 Resolution:          |    Keywords:  8.2.0:? r?          
Next_action:  review  |    Verified:  0                   
  Blockedby:          |    Blocking:  4265                
----------------------+-----------------------------------------------------
Changes (by dsd):

  * keywords:  8.2.0:? r- => 8.2.0:? r?


Comment:

 Replying to [comment:19 marco]:
 > Please separate the widget creation code in different blocks (single
 \n). You are doing it in some places, but not consistently

 I don't understand the request.  I assume you are talking about
 view/aboutxo.py. I double checked and I'm doing it the same (whitespace-
 wise) as the rest of the code in the file.

 > {{{
 > +    license_file = _("/usr/share/licenses/common-licenses/GPL-2")
 > }}}
 >
 > Do we need to rely on a translated string for this? It seems like we
 could just figure out the path in the code from the current lang codes.

 I guess we could do that. How should it be implemented? Should I take the
 whole string (en_US.utf-8) and look for files based on that? Or strip off
 the .utf-8 and have all files UTF-8 (as is currently)? Or just take the
 first section "en"?

 > {{{
 > +        label_info = gtk.Label(_("Sugar is the graphical user interface
 that you are looking at. Sugar is free software, covered by the GNU
 General Public License, and you are welcome to change it and/or distribute
 copies of it under certain conditions described therein."))
 > }}}
 >
 > 80 cols, please split the string up. This makes me think you didn't
 pylint the code.

 Fixed

 > {{{
 > +        label_info.set_size_request(600, -1)
 > }}}
 >
 > I'd make this screen size relative gtk.gdk.screen_width() / 2 or
 something.

 Fixed

 > {{{
 > +            view_license.set_border_window_size(gtk.TEXT_WINDOW_LEFT,
 1)
 > +            view_license.set_border_window_size(gtk.TEXT_WINDOW_RIGHT,
 1)
 > +            view_license.set_border_window_size(gtk.TEXT_WINDOW_TOP, 1)
 > +            view_license.set_border_window_size(gtk.TEXT_WINDOW_BOTTOM,
 1)
 > }}}
 >
 > Do we actually want this border? In what color is it rendered? Eben?

 Its in dark grey as you can see in the screenshot. It looks a bit better
 bordered off, in my opinion.

 > {{{
 > +            view_license.set_left_margin(3)
 > }}}
 >
 > Why a margin only on the left? I'd prefer to use style.DEFAULT_PADDING
 anyway.

 Because otherwise the text is right up against the border and looks ugly.
 The other margins seem to be appropriate already - the displayed text sits
 at least a few pixels away from the right, top and bottom borders.
 If we remove the border then the margin is not needed.

 I also updated the copyright notice in this new patch.

-- 
Ticket URL: <http://dev.laptop.org/ticket/6929#comment:24>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list