/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 viz/branchwin.py

  • Committer: Daniel Schierbeck
  • Date: 2007-11-22 00:21:46 UTC
  • mto: This revision was merged to the branch mainline in revision 402.
  • Revision ID: daniel.schierbeck@gmail.com-20071122002146-0fplvawfgl2ul1xo
Made the compact view toggling cleaner.

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
    def construct_top(self):
255
255
        """Construct the top-half of the window."""
256
256
        # FIXME: Make broken_line_length configurable
257
 
        if self.compact_view:
258
 
            brokenlines = 32
259
 
        else:
260
 
            brokenlines = None
261
257
 
262
 
        self.treeview = TreeView(self.branch, self.start, self.maxnum, brokenlines)
 
258
        self.treeview = TreeView(self.branch, self.start, self.maxnum, self.compact_view)
263
259
 
264
260
        self.treeview.connect('revision-selected',
265
261
                self._treeselection_changed_cb)
399
395
            option = 'no'
400
396
 
401
397
        self.config.set_user_option('viz-compact-view', option)
402
 
 
403
 
        revision = self.treeview.get_revision()
404
 
 
405
 
        self.paned.get_child1().destroy()
406
 
        self.paned.pack1(self.construct_top(), resize=True, shrink=False)
407
 
 
408
 
        gobject.idle_add(self.set_revision, revision.revision_id)
 
398
        self.treeview.set_property('compact', self.compact_view)
 
399
        self.treeview.refresh()
409
400
 
410
401
    def _tag_revision_cb(self, w):
411
402
        try: