[Bugs] #4309 sugar UNSP: "Timezone" does not auto-scroll

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Dec 7 00:31:33 EST 2012


#4309: "Timezone" does not auto-scroll
------------------------------------------+---------------------------------
    Reporter:  ajay_garg                  |          Owner:  erikos           
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98             
   Component:  sugar                      |        Version:  Git as of bugdate
    Severity:  Unspecified                |       Keywords:  regression       
Distribution:  Fedora                     |   Status_field:  Unconfirmed      
------------------------------------------+---------------------------------
 In the development build 16 on XO-1.75, I notice the following ::

 a)
 Open "My Settings" -> "Date and Time".


 b)
 Search for a timezone (Australia/Sydney) interactively, using the entry-
 box.
 The auto-scroll WORKS FINE here, as the auto-scroll is done to
 "Australia/Sydney"


 c)
 Click "tick" to save the selected timezone, and  exit the section.


 d)
 Re-enter the section.


 e)
 It is observed that the auto-scroll HAS NOT TAKEN PLACE to
 "Australia/Sydney". However, if I manually scroll, I see that
 "Australia/Sydney" is selected == it's just that the auto-scroll did not
 take place.


 At code level ("/usr/share/sugar/extensions/cpsection/datetime/view.py"),

 def setup(self):
     zone = self._model.get_timezone()
     for row in self._store:
         if zone == row[0]:
             self._treeview.set_cursor(row.path,
                                       self._timezone_column,
                                       False)
             self._treeview.scroll_to_cell(row.path,
                                           self._timezone_column,
                                           True, 0.5, 0.5)
             break



 here, "self._treeview.set_cursor" is working at  all times, but
 "self._treeview.scroll_to_cell" does not work in steps d) and e).


 This is a regression; auto-scroll worked fine in steps d) and e) in
 12.1.0.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4309>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list