#7588 BLOC 8.2.0 (: Sugar should provide messages indicating when NAND is "getting full" and "critically full"

Zarro Boogs per Child bugtracker at laptop.org
Wed Aug 13 14:10:40 EDT 2008


#7588: Sugar should provide messages indicating when NAND is "getting full" and
"critically full"
-----------------------+----------------------------------------------------
   Reporter:  cscott   |       Owner:  erikos              
       Type:  defect   |      Status:  new                 
   Priority:  blocker  |   Milestone:  8.2.0 (was Update.2)
  Component:  sugar    |     Version:  not specified       
 Resolution:           |    Keywords:  blocks:8.2.0 r?     
Next_action:  review   |    Verified:  0                   
  Blockedby:           |    Blocking:  7125                
-----------------------+----------------------------------------------------

Comment(by tomeu):

 Replying to [comment:9 erikos]:
 > c) when the journal is in focus
 >
 > With the latter case the current implementation faces a race. For
 example - in case (a) after the alert is displayed and 'Show journal' is
 clicked we focus the journal and another alert is displayed. Maybe we can
 even leave the show-when-focus case out.

 I think Eben is fine with dropping that.

 > Layout nitpicks:
 >  - i added the SugarModalAlert gtype to the sugar theme which gives the
 black background color and the white font but does not produce the grey
 border, any idea someone?

 Nope :/ Maybe you should add the theme patch?

 >  - the button in the alert takes all the available size even when I try
 to tell him not to self._vbox.pack_start(self._show_journal, False)

 Yeah, that's expected, from http://www.pygtk.org/docs/pygtk/class-
 gtkbox.html :

 "A child is always allocated the full height of a gtk.HBox and the full
 width of a gtk.VBox."

 This works:

 {{{
         alignment = gtk.Alignment(xalign=0.5, yalign=0.5)
         self._vbox.pack_start(alignment, expand=False)
         alignment.show()

         self._show_journal = gtk.Button()
         self._show_journal.set_label(_('Show Journal'))
         self._show_journal.set_border_width(0)
         alignment.add(self._show_journal)
         self._show_journal.show()
         self._show_journal.connect('clicked', self.__show_journal_cb)
 }}}

 Otherwise looks good to me.

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


More information about the Bugs mailing list