[Bugs] #3998 sugar NORM: Opening the control panel should not auto focus on its search area unless characters are typed

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Oct 18 05:43:39 EDT 2012


#3998: Opening the control panel should not auto focus on its search area unless
characters are typed
----------------------------+-----------------------------------------------
    Reporter:  garycmartin  |          Owner:  erikos    
        Type:  defect       |         Status:  new       
    Priority:  Normal       |      Milestone:  0.98      
   Component:  sugar        |        Version:  0.97.x    
    Severity:  Major        |       Keywords:  13.1.0, r?
Distribution:  OLPC         |   Status_field:  Assigned  
----------------------------+-----------------------------------------------

Comment(by erikos):

 I would add the place holder string now, so we do not have the issue with
 breaking the freeze (has no visual impact).

 {{{
 diff --git a/src/jarabe/controlpanel/toolbar.py
 b/src/jarabe/controlpanel/toolbar.py
 index 2094d3b..1423e94 100644
 --- a/src/jarabe/controlpanel/toolbar.py
 +++ b/src/jarabe/controlpanel/toolbar.py
 @@ -53,6 +53,8 @@ class MainToolbar(Gtk.Toolbar):
                                                'system-search')
          self._search_entry.add_clear_button()
          self._search_entry.set_width_chars(25)
 +        text = _('Search in %s') % _('Settings')
 +        self._search_entry.set_placeholder_text(text)
          self._search_entry.connect('changed',
 self.__search_entry_changed_cb)
          tool_item.add(self._search_entry)
          self._search_entry.show()
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3998#comment:6>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list