/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to branchview/treeview.py

  • Committer: Curtis Hovey
  • Date: 2011-09-02 14:54:31 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110902145431-0e1hml4vi9kc4v7v
parents and children can be None or a list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
    def back(self):
261
261
        """Signal handler for the Back button."""
262
262
        parents = self.get_parents()
263
 
        if not len(parents):
 
263
        if not parents:
264
264
            return
265
265
 
266
266
        for parent_id in parents:
275
275
    def forward(self):
276
276
        """Signal handler for the Forward button."""
277
277
        children = self.get_children()
278
 
        if not len(children):
 
278
        if not children:
279
279
            return
280
280
 
281
281
        for child_id in children: